package jetbrains.mps.smodel.test.migrations; /*Generated by MPS */ import jetbrains.mps.MPSLaunch; import jetbrains.mps.lang.test.runtime.BaseTransformationTest; import org.junit.Test; import jetbrains.mps.lang.test.runtime.BaseMigrationTestBody; import java.util.Collection; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.internal.collections.runtime.ListSequence; import java.util.ArrayList; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.lang.migration.runtime.base.MigrationScript; import jetbrains.mps.lang.smodel.migration.MigratePopularConceptAndNodeCasts; @MPSLaunch public class MigratePopularConceptAndNodeCasts_Test_Test extends BaseTransformationTest { @Test public void test_MigratePopularConceptAndNodeCasts_Test() throws Throwable { initTest("${mps_home}", "r:3187e3e8-ddb0-4ff3-a5a8-255ce21a0125(jetbrains.mps.smodel.test.migrations@tests)", false); runTest("jetbrains.mps.smodel.test.migrations.MigratePopularConceptAndNodeCasts_Test_Test$TestBody", "testMethod", true); } @MPSLaunch public static class TestBody extends BaseMigrationTestBody { @Override public Collection<SNode> getInputNodes() { return ListSequence.fromListAndArray(new ArrayList<SNode>(), SLinkOperations.getTarget(SNodeOperations.cast(getRealNodeById("5476670926299714765"), MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b5a38fc01L, "jetbrains.mps.lang.test.structure.TestNode")), MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b5a38fc01L, 0x11b5a397b92L, "nodeToCheck"))); } @Override public Collection<SNode> getOutputNodes() { return ListSequence.fromListAndArray(new ArrayList<SNode>(), SLinkOperations.getTarget(SNodeOperations.cast(getRealNodeById("2357417460944492141"), MetaAdapterFactory.getConcept(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b5a38fc01L, "jetbrains.mps.lang.test.structure.TestNode")), MetaAdapterFactory.getContainmentLink(0x8585453e6bfb4d80L, 0x98deb16074f1d86cL, 0x11b5a38fc01L, 0x11b5a397b92L, "nodeToCheck"))); } @Override public MigrationScript getMigrationScript() { return new MigratePopularConceptAndNodeCasts(); } } }