Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » problems adding my own tests
problems adding my own tests [message #329612] Mon, 30 June 2008 09:04
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
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.&lt;init&gt
(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
Previous Topic:command-line update (update manager)
Next Topic:Ganymede keymap in pdf format
Goto Forum:
  


Current Time: Sat Aug 17 06:42:27 GMT 2024

Powered by FUDForum. Page generated in 0.02385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top