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.CheckErrorMessagesRunnable;
import jetbrains.mps.project.ProjectBase;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import java.util.ArrayList;
import jetbrains.mps.lang.test.runtime.CheckExpectedMessageRunnable;
import jetbrains.mps.errors.MessageStatus;
import jetbrains.mps.smodel.SNodePointer;

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

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

  @Test
  public void test_ErrorMessagesCheck843236768048178247() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck843236768048178247();
  }
  @Test
  public void test_NodeVariableHasNotBeenInitializedCheck6923385624928056097() throws Throwable {
    new TestBody(this).test_NodeVariableHasNotBeenInitializedCheck6923385624928056097();
  }
  @Test
  public void test_NodeVariableHasNotBeenInitializedCheck6923385624928725296() throws Throwable {
    new TestBody(this).test_NodeVariableHasNotBeenInitializedCheck6923385624928725296();
  }
  @Test
  public void test_ErrorMessagesCheck2466039659637288472() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck2466039659637288472();
  }
  @Test
  public void test_NodeCannotAssignValueToFinalCheck2466039659637220345() throws Throwable {
    new TestBody(this).test_NodeCannotAssignValueToFinalCheck2466039659637220345();
  }
  @Test
  public void test_ErrorMessagesCheck2466039659637478694() throws Throwable {
    new TestBody(this).test_ErrorMessagesCheck2466039659637478694();
  }

  /*package*/ static class TestBody extends BaseTestBody {

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

    public void test_ErrorMessagesCheck843236768048178247() throws Exception {

      runWithinCommand(() -> {
        SNode nodeToCheck = getRealNodeById("843236768048177681");
        SNode operation = getRealNodeById("843236768048178247");
        new CheckErrorMessagesRunnable(nodeToCheck, false, false, ((ProjectBase) myProject).getPlatform()).includeSelf(false).exclude(ListSequence.fromListAndArray(new ArrayList<CheckExpectedMessageRunnable>(), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("3951985765451229351"), MessageStatus.ERROR, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "843236768047680817"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("3951985765451227571"), MessageStatus.ERROR, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "843236768047887576"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()), new CheckExpectedMessageRunnable.CheckExpectedRuleMessageRunnable(getRealNodeById("2466039659637219764"), MessageStatus.ERROR, new SNodePointer("r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)", "4705425356437995968"), "", myProject.getRepository(), ((ProjectBase) myProject).getPlatform()))).run();
      });
    }
    public void test_NodeVariableHasNotBeenInitializedCheck6923385624928056097() throws Exception {

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

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

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

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

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

  }
}
