package jetbrains.mps.generator.tests.lm2k;

/*Generated by MPS */

import jetbrains.mps.lang.test.generator.rt.BaseGeneratorTest;
import org.jetbrains.mps.openapi.model.SModel;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import jetbrains.mps.lang.test.generator.rt.TransformHelper;
import jetbrains.mps.lang.test.generator.rt.ModelAssert;

public class LM2K extends BaseGeneratorTest {



  private SModel myArg_IN;
  private SModel myArg_OUT;
  private SModel myArg_GP_Interpreted;


  @BeforeEach
  public void prepareArguments() {
    myArg_IN = findModel("IN", "r:287e7b56-af80-4914-8746-82e9872f3c42(jetbrains.mps.generator.tests.lm2k.m1)");
    myArg_OUT = findModel("OUT", "r:76e4b3a9-13b6-469f-88e9-4702b400179a(jetbrains.mps.generator.tests.lm2k.m2)");
    myArg_GP_Interpreted = findModel("GP_Interpreted", "r:994cc8f4-1083-4c6f-bc3b-acdda948b047(jetbrains.mps.generator.tests.lm2k.interpreted@genplan)");
  }

  @Test
  public void testTransformAndMatch0() {
    TransformHelper t = newTransformer();
    SModel i = myArg_IN;
    t.setInput(i);
    t.setPlanProvider(planProviderFromModel(myArg_GP_Interpreted));
    t.transform();
    SModel rm = myArg_OUT;
    ModelAssert ma = new ModelAssert(t.getResult().getOutputRepository());
    ma.assertMatch(t.getOutputModel(), rm);
  }

}
