package org.simantics.scl.ui.console; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.junit.Test; public class TestSCLConsole { @Test public void testConsole() throws Exception { Display display = new Display(); Shell shell = new Shell(display); shell.setSize(640, 480); FillLayout layout = new FillLayout(); shell.setLayout(layout); // Test console new SCLConsole(shell, SWT.NONE); // Open shell shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }