package jetbrains.mps.lang.editor.actions.test; /*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 Subst_Child_WithNextEditorAndMenu_Test extends BaseTransformationTest { @Test public void test_Subst_Child_WithNextEditorAndMenu() throws Throwable { initTest("${mps_home}", "r:c44f4b8c-137c-4225-8bd9-38d232a9b736(jetbrains.mps.lang.editor.actions.test)"); runTest("jetbrains.mps.lang.editor.actions.test.Subst_Child_WithNextEditorAndMenu_Test$TestBody", "testMethod", false); } @MPSLaunch public static class TestBody extends BaseEditorTestBody { @Override public void testMethodImpl() throws Exception { initEditorComponent("583472190600188434", "583472190600188436"); invokeAction("jetbrains.mps.ide.editor.actions.Complete_Action"); Assert.assertTrue(getEditorComponent().getNodeSubstituteChooser().isVisible() && getEditorComponent().getNodeSubstituteChooser().getNumberOfActions() == 1); pressKeys(ListSequence.fromListAndArray(new ArrayList<String>(), " ENTER")); } } }