package jetbrains.mps.lang.editor.multiple.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 jetbrains.mps.nodeEditor.cells.EditorCell; import jetbrains.mps.nodeEditor.NodeEditorComponent; import junit.framework.Assert; import jetbrains.mps.nodeEditor.cells.EditorCell_Label; @MPSLaunch public class InspectorOfCompactPresentation_Test extends BaseTransformationTest { @Test public void test_InspectorOfCompactPresentation() throws Throwable { initTest("${mps_home}", "r:dbab6746-af91-4594-857e-d38a36667e17(jetbrains.mps.lang.editor.multiple.tests)"); runTest("jetbrains.mps.lang.editor.multiple.tests.InspectorOfCompactPresentation_Test$TestBody", "testMethod", false); } @MPSLaunch public static class TestBody extends BaseEditorTestBody { @Override public void testMethodImpl() throws Exception { initEditorComponent("2112659629360583086", "2112659629360583089"); invokeAction("jetbrains.mps.ide.editor.actions.Insert_Action"); EditorCell rootCell = ((NodeEditorComponent) getEditorComponent()).getInspector().getRootCell(); Assert.assertTrue(rootCell instanceof EditorCell_Label && ((EditorCell_Label) rootCell).getText().equals("compact")); } } }