Community
Participate
Working Groups
org.eclipse.rap.ui.tests\RAP UI Tests\org\eclipse\rap\ui\tests\ServiceHandlerExtensionTest.java has a compile error. ServiceManager#getCustomHandler does not exists any more.
Created attachment 191885 [details] Fix for compile problem This fix solves the compile problem. Unfortunately currently I'm not able to run the UI testsuite to see whether it also performs as expected. If anybody could do a quick check that would help. Otherwise I will spend some time this weekend to get my suite up and running and see if the patch works and if not what have to be done to get it work :-)
Hi Frank, just ran the test suite and get this exception in ServiceHandlerExtensionTest: java.lang.NoClassDefFoundError: org/eclipse/rwt/Fixture at org.eclipse.rap.ui.tests.ServiceHandlerExtensionTest.setUp(ServiceHandlerExtensionTest.java:41) at junit.framework.TestCase.runBare(TestCase.java:128) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.rap.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64) at org.eclipse.rap.internal.junit.runtime.Application$2.run(Application.java:74) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137) at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1146) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1133) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694) at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157) at org.eclipse.rap.interactiondesign.tests.impl.EntryPointImpl.createUI(EntryPointImpl.java:33) at org.eclipse.rwt.internal.lifecycle.EntryPointManagerInstance.createUI(EntryPointManagerInstance.java:79) at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:33) at org.eclipse.rap.internal.junit.runtime.Application.createAndRunWorkbench(Application.java:44) at org.eclipse.rap.internal.junit.runtime.Application.createUI(Application.java:38) at org.eclipse.rwt.internal.lifecycle.EntryPointManagerInstance.createUI(EntryPointManagerInstance.java:79) at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:33) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:242) at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:111) at java.lang.Thread.run(Thread.java:662) at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102) Caused by: java.lang.ClassNotFoundException: org.eclipse.rwt.Fixture at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 39 more
Hi Ivan. Thanks for running the suite and sorry that it didn't work. Finally I've got the UI tests running again in my workspace. The ServiceHandlerExtensionTest should compile and run without failure with the latest version that I've commited to CVS head. Note that I've added the fixture fragment to the RAP UI Tests launch configuration. So IMHO we can mark this issue as resolved.
Marked as fixed.