package jetbrains.mps.lang.editor.menus.substitute.tests.tests; /*Generated by MPS */ import jetbrains.mps.MPSLaunch; import jetbrains.mps.lang.test.runtime.BaseTransformationTest; import org.junit.Test; import jetbrains.mps.lang.test.runtime.BaseEditorTestBody; import junit.framework.Assert; import jetbrains.mps.internal.collections.runtime.ListSequence; import java.util.ArrayList; @MPSLaunch public class TestSubstitute_SubstituteChildWithConstraints_Wrapper_CanBeChild_Test extends BaseTransformationTest { @Test public void test_TestSubstitute_SubstituteChildWithConstraints_Wrapper_CanBeChild() throws Throwable { initTest("${mps_home}", "r:62873c84-7a76-488a-9b84-4e0ffdbec8db(jetbrains.mps.lang.editor.menus.substitute.tests.tests@tests)"); runTest("jetbrains.mps.lang.editor.menus.substitute.tests.tests.TestSubstitute_SubstituteChildWithConstraints_Wrapper_CanBeChild_Test$TestBody", "testMethod", false); } @MPSLaunch public static class TestBody extends BaseEditorTestBody { @Override public void testMethodImpl() throws Exception { initEditorComponent("705057939850083096", "705057939850083098"); invokeAction("jetbrains.mps.ide.editor.actions.Complete_Action"); Assert.assertTrue(getEditorComponent().getNodeSubstituteChooser().getNumberOfActions() == 1); pressKeys(ListSequence.fromListAndArray(new ArrayList<String>(), " ENTER")); } } }