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 TestTransform_ChildWithConstraints_DifferentContext_CanBeParent_Test extends BaseTransformationTest {
@Test
public void test_TestTransform_ChildWithConstraints_DifferentContext_CanBeParent() 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.TestTransform_ChildWithConstraints_DifferentContext_CanBeParent_Test$TestBody", "testMethod", false);
}
@MPSLaunch
public static class TestBody extends BaseEditorTestBody {
@Override
public void testMethodImpl() throws Exception {
initEditorComponent("3262439767570580045", "3262439767570580048");
typeString(" ");
invokeAction("jetbrains.mps.ide.editor.actions.Complete_Action");
Assert.assertTrue(getEditorComponent().getNodeSubstituteChooser().getNumberOfActions() == 1);
pressKeys(ListSequence.fromListAndArray(new ArrayList<String>(), " ENTER"));
}
}
}