package jetbrains.mps.baseLanguage.test;

/*Generated by MPS */

import jetbrains.mps.MPSLaunch;
import jetbrains.mps.lang.test.runtime.BaseTransformationTest;
import org.junit.jupiter.api.extension.RegisterExtension;
import jetbrains.mps.lang.test.runtime.TestParametersCacheExtension;
import jetbrains.mps.lang.test.runtime.TestParametersCache;
import org.junit.jupiter.api.Test;
import jetbrains.mps.lang.test.runtime.BaseTestBody;
import jetbrains.mps.lang.test.runtime.TransformationTest;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.test.runtime.CheckExpectedMessageRunnable;
import jetbrains.mps.errors.MessageStatus;
import jetbrains.mps.smodel.SNodePointer;
import jetbrains.mps.project.ProjectBase;
import jetbrains.mps.lang.test.runtime.CheckErrorMessagesRunnable;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import java.util.ArrayList;

@MPSLaunch
public class UnusedLocalVariableDeclaration_Test extends BaseTransformationTest {
  @RegisterExtension
  private static final TestParametersCacheExtension ourParametersCacheExtension = new TestParametersCacheExtension(new TestParametersCache(UnusedLocalVariableDeclaration_Test.class, "${mps_home}", "r:00000000-0000-4000-0000-011c895902c7(jetbrains.mps.baseLanguage.test@tests)", false));

  public UnusedLocalVariableDeclaration_Test() {
    super(ourParametersCacheExtension.getParametersCache());
  }

  @Test
  public void test_NodeVariableInitializerIsRedundantWarningCheck215889526509545817() throws Throwable {
    new TestBody(this).test_NodeVariableInitializerIsRedundantWarningCheck215889526509545817();
  }
  @Test
  public void test_NodeUnusedVariableWarningCheck215889526509546049() throws Throwable {
    new TestBody(this).test_NodeUnusedVariableWarningCheck215889526509546049();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509545709() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509545709();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509546687() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509546687();
  }
  @Test
  public void test_NodeVariableInitializerIsRedundantWarningCheck215889526509553873() throws Throwable {
    new TestBody(this).test_NodeVariableInitializerIsRedundantWarningCheck215889526509553873();
  }
  @Test
  public void test_NodeUnusedVariableWarningCheck215889526509554611() throws Throwable {
    new TestBody(this).test_NodeUnusedVariableWarningCheck215889526509554611();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509553154() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509553154();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509562440() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509562440();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509562472() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509562472();
  }
  @Test
  public void test_ErrorMessagesCheck215889526509563288() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck215889526509563288();
  }

  /*package*/ static class TestBody extends BaseTestBody {

    /*package*/ TestBody(TransformationTest owner) {
      super(owner);
    }

    public void test_NodeVariableInitializerIsRedundantWarningCheck215889526509545817() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509544986");
        SNode operation = getRealNodeById("215889526509545817");
        new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(nodeToCheck, MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "963887337804010668"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()).run();
      });
    }
    public void test_NodeUnusedVariableWarningCheck215889526509546049() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509544939");
        SNode operation = getRealNodeById("215889526509546049");
        new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(nodeToCheck, MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "4056233746948448436"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509545709() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509544002");
        SNode operation = getRealNodeById("215889526509545709");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromListAndArray(new ArrayList<CheckExpectedMessageRunnable>(), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("215889526509544986"), MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "963887337804010668"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("215889526509544939"), MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "4056233746948448436"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()))).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509546687() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509545004");
        SNode operation = getRealNodeById("215889526509546687");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromList(new ArrayList<CheckExpectedMessageRunnable>())).run();
      });
    }
    public void test_NodeVariableInitializerIsRedundantWarningCheck215889526509553873() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509545053");
        SNode operation = getRealNodeById("215889526509553873");
        new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(nodeToCheck, MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "963887337804010668"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()).run();
      });
    }
    public void test_NodeUnusedVariableWarningCheck215889526509554611() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509545051");
        SNode operation = getRealNodeById("215889526509554611");
        new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(nodeToCheck, MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "4056233746948448436"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509553154() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509545046");
        SNode operation = getRealNodeById("215889526509553154");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromListAndArray(new ArrayList<CheckExpectedMessageRunnable>(), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("215889526509545053"), MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "963887337804010668"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("215889526509545051"), MessageStatus.WARNING, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "4056233746948448436"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()))).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509562440() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509545097");
        SNode operation = getRealNodeById("215889526509562440");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromList(new ArrayList<CheckExpectedMessageRunnable>())).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509562472() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509562451");
        SNode operation = getRealNodeById("215889526509562472");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromList(new ArrayList<CheckExpectedMessageRunnable>())).run();
      });
    }
    public void test_ErrorMessagesCheck215889526509563288() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("215889526509563267");
        SNode operation = getRealNodeById("215889526509563288");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(true).exclude(ListSequence.fromList(new ArrayList<CheckExpectedMessageRunnable>())).run();
      });
    }

  }
}
