package jetbrains.mps.lang.actions.test.substitute; /*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; @MPSLaunch public class AddMenuPart_SimpleItemSubstitute_smartComplete_Test extends BaseTransformationTest { @Test public void test_AddMenuPart_SimpleItemSubstitute_smartComplete() throws Throwable { initTest("${mps_home}", "r:0d47ccef-2a97-4a7c-8ede-5adeaac0a5a7(jetbrains.mps.lang.actions.test.substitute@tests)"); runTest("jetbrains.mps.lang.actions.test.substitute.AddMenuPart_SimpleItemSubstitute_smartComplete_Test$TestBody", "testMethod", false); } @MPSLaunch public static class TestBody extends BaseEditorTestBody { @Override public void testMethodImpl() throws Exception { initEditorComponent("5164819300891972345", "5164819300891972348"); typeString("new"); invokeAction("jetbrains.mps.ide.editor.actions.Complete_Action"); Assert.assertTrue(getEditorComponent().getNodeSubstituteChooser().isVisible()); getEditorComponent().getNodeSubstituteChooser().setVisible(false); invokeAction("jetbrains.mps.ide.editor.actions.CompleteSmart_Action"); } } }