Is JUnit 4 supported? When I run a Junit plugin test with Junit4 as the Test Runner, I get an exception in the getUI() code:
java.lang.IllegalStateException: Display has not been initialized.
at com.windowtester.runtime.swt.internal.junit.ExecutionEnvironment.getDisplay(ExecutionEnvironment.java:68)
at com.windowtester.runtime.swt.internal.junit.ExecutionEnvironment.createUI(ExecutionEnvironment.java:92)
at com.windowtester.runtime.swt.internal.junit.ExecutionEnvironment.getUI(ExecutionEnvironment.java:80)
at com.windowtester.runtime.swt.internal.junit.SWTExecutionMonitor.getUI(SWTExecutionMonitor.java:232)
at com.windowtester.runtime.swt.internal.junit.SWTExecutionContext.getUI(SWTExecutionContext.java:36)
at com.windowtester.runtime.common.UITestCaseCommon.getUI(UITestCaseCommon.java:252)
I have added Junit4 as a dependency of my test plugin. But the generated code from the recorder still generates Junit 3 like code (without the @Test annotations, that I have added myself). Is there anything else to do to use Junit 4?
I am using the latest version of WindowTester 3.5.1 with Eclipse 3.3.1.1
Thanks