Problems migrating to 3.0M9 in junit plugin tests [message #250104] |
Mon, 07 June 2004 10:23 |
Eclipse User |
|
|
|
Originally posted by: simon._N0_SPAM_amaze.ulb.ac.be
Hello,
We have been trying to migrate from 3.0M8 to 3.0M9 (on Mac OS X 10.3.4)
following the suggested
steps given in the newsgroups
(http://dev.eclipse.org/newslists/news.eclipse.platform/
msg21002.html), however, it seems there is a classloader problem since
once we launch our junit
plugin tests, eclipse shows (in Console view) a message saying that the
*Test classes were not found:
Class not found foo.pack.barfooTest
Class not found foo.bar.foobarTest
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NoClassDefFoundError: foo/bar/
MyClass)
at org.eclipse.swt.SWT.error(SWT.java:2689)
at org.eclipse.swt.SWT.error(SWT.java:2614)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:161)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:25)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:3276)
at
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.java:83)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication.run Tests(UITestApplication.java:88)
at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:56)
at java.lang.Thread.run(Thread.java:552)
Unhandled event loop exception
Reason:
Failed to execute runnable (java.lang.NoClassDefFoundError:
foo/bar/MyClass)
*** SWT nested exception
Reason:
foo/bar/MyClass
All plugins constructors were changed (not IPluginRegistry anymore).
Now using: start() and stop() methods instead startup() and shutdown().
Therefore, we don't have any deprecated entry messages in the Problems
view.
Besides, all the "compatibilty" library references were also erased (from
plugin.xml).
Added <?eclipse version="3.0"?> to plugin.xml files
The preference initializer was also adapted (for each case a new class has
been created and added the
<extenstion point= ...> to plugin.xml)
<extension point="org.eclipse.core.runtime.preferences">
<initializer class="our.eclipse.plugin.OurPluginPreferenceInitializer"/ >
</extension>
Any ideas?
Thank you very much in advance,
Simon De Keyzer
|
|
|
Powered by
FUDForum. Page generated in 0.10052 seconds