problems adding my own tests [message #329612] |
Mon, 30 June 2008 05:04 |
Eclipse User |
|
|
|
Hi,
I'd like to use eclipse automated test framework for my own plugin, but
unfortunately I can't seem to get it running. Running one of the bundled
eclipse tests works fine, but when I execute my own test I'm always
getting:
<error message="junit.framework.TestSuite cannot be cast to
junit.framework.Test" type="java.lang.ClassCastException"> at
org.eclipse.test.EclipseTestRunner.getTest(EclipseTestRunner .java:265)
at org.eclipse.test.EclipseTestRunner.<init>
(EclipseTestRunner.java:220)
at
org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.jav a:204)
at
org.eclipse.test.CoreTestApplication.runTests(CoreTestApplic ation.java:35)
at
org.eclipse.test.CoreTestApplication.run(CoreTestApplication .java:31)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMet hod(EclipseAppContainer.java:572)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:171)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
at org.eclipse.core.launcher.Main.main(Main.java:30)
In the log. I don't quite understand how that can happen, after all
junit.framework.TestSuite is a subclass of junit.framework.Test.
Anybody got some idea?
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.04936 seconds