[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[udig-devel] testing with plugin...
|
Documentation seems very thing on the ground ... Richard could you pass
this onto the newsgroups:
running into dificulties understand the plug-in dependency isses
involved in getting junit test for plug-in development to work.
We have two plug-ins:
net.refractions.udig.registry
net.refractions.udig.registry.test
Where net.refractions.udig.registry.test depends on:
- net.refractions.udig.registry
- net.refractions.udig.libs
- org.eclipse.core.resources
- org.eclipse.pde.junit.runtime
- org.eclipse.ui
We constructed this list based on
http://today.java.net/today/2004/02/02/ch12Eclipse.pdf in particular:
Run a test from this plugin using "Run" / "JUnit Plug-in Test" results in:
Launch Error: Could not launch the configuration. Details are in the
log. Would you like to open it?
And then the actual log:
!SESSION Jul 23, 2004 17:28:45.187
---------------------------------------------
eclipse.buildId=unknown
java.version=1.4.2_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -version 3 -application
org.eclipse.pde.junit.runtime.uitestapplication -port 2799
-testpluginname net.refractions.udig.registry.test -classnames
net.refractions.udig.internal.registry.LocalRegistryTest
!ENTRY org.eclipse.osgi Jul 23, 2004 17:28:45.187
!MESSAGE Application error
!STACK 1
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNotNull(Assert.java:220)
at junit.framework.Assert.assertNotNull(Assert.java:213)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication.getApplication(UITestApplication.java:52)
at
org.eclipse.pde.internal.junit.runtime.UITestApplication.run(UITestApplication.java:27)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)