package jetbrains.mps.lang.editor.folding.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 java.util.Set; import jetbrains.mps.nodeEditor.EditorCell_WithComponent; import junit.framework.Assert; import jetbrains.mps.internal.collections.runtime.SetSequence; @MPSLaunch public class InitiallyExpandedInnerSwingComponent_Test extends BaseTransformationTest { @Test public void test_InitiallyExpandedInnerSwingComponent() throws Throwable { initTest("${mps_home}", "r:0204c664-b836-4137-bb87-42caecd8a4e3(jetbrains.mps.lang.editor.folding.test)"); runTest("jetbrains.mps.lang.editor.folding.test.InitiallyExpandedInnerSwingComponent_Test$TestBody", "testMethod", false); } @MPSLaunch public static class TestBody extends BaseEditorTestBody { @Override public void testMethodImpl() throws Exception { initEditorComponent("5489671301386958428", ""); Set<EditorCell_WithComponent> componentCells = getEditorComponent().getCellTracker().getComponentCells(); Assert.assertFalse(componentCells.isEmpty()); for (EditorCell_WithComponent cell : SetSequence.fromSet(componentCells)) { Assert.assertTrue(cell.getComponent().isVisible()); } } } }