|
Lines 12-17
Link Here
|
| 12 |
|
12 |
|
| 13 |
import junit.framework.Assert; |
13 |
import junit.framework.Assert; |
| 14 |
import junit.framework.TestCase; |
14 |
import junit.framework.TestCase; |
|
|
15 |
import junit.framework.TestSuite; |
| 15 |
|
16 |
|
| 16 |
import org.eclipse.swt.widgets.Display; |
17 |
import org.eclipse.swt.widgets.Display; |
| 17 |
import org.eclipse.ui.PlatformUI; |
18 |
import org.eclipse.ui.PlatformUI; |
|
Lines 19-24
Link Here
|
| 19 |
import org.eclipse.ui.tests.rcp.util.WorkbenchAdvisorObserver; |
20 |
import org.eclipse.ui.tests.rcp.util.WorkbenchAdvisorObserver; |
| 20 |
|
21 |
|
| 21 |
public class PlatformUITest extends TestCase { |
22 |
public class PlatformUITest extends TestCase { |
|
|
23 |
public static TestSuite suite() { |
| 24 |
TestSuite suite = new TestSuite(); |
| 25 |
suite.addTest(new PlatformUITest("testEarlyGetWorkbench")); |
| 26 |
suite.addTest(new PlatformUITest("testCreateDisplay")); |
| 27 |
suite.addTest(new PlatformUITest("testCreateAndRunWorkbench")); |
| 28 |
suite.addTest(new PlatformUITest("testCreateAndRunWorkbenchWithExceptionOnStartup")); |
| 29 |
suite.addTest(new PlatformUITest("testStartupThreading")); |
| 30 |
suite.addTest(new PlatformUITest("testDisplayAccess_sync")); |
| 31 |
suite.addTest(new PlatformUITest("testDisplayAccess_async")); |
| 32 |
suite.addTest(new PlatformUITest("testWithoutDisplayAccess_sync")); |
| 33 |
suite.addTest(new PlatformUITest("testWithoutDisplayAccess_async")); |
| 34 |
suite.addTest(new PlatformUITest("testDisplayAccessInUIThreadAllowed")); |
| 35 |
return suite; |
| 36 |
} |
| 22 |
|
37 |
|
| 23 |
public PlatformUITest(String testName) { |
38 |
public PlatformUITest(String testName) { |
| 24 |
super(testName); |
39 |
super(testName); |