Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Running individual JUnit tests
Running individual JUnit tests [message #142009] Mon, 16 February 2004 00:24
Eclipse UserFriend
Hi,

I am unable to figure out how to rerun individual JUnit tests from JUnit
hierarchy view. I created a simple TestCase using a wizard, added a method
testNothing that does exactly that and ran the whole suite. Fine, it all
works. Now when I context click on testNothing method in JUnit hierarchy
and choose "Rerun" I get exception in Failure trace that I am pasting here:

junit.framework.AssertionFailedError: Could not create test 'testNothing'
at junit.framework.Assert.fail(Assert.java:47)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner$1.run Test(RemoteTestRunner.java:489)
at junit.framework.TestCase.runBare(TestCase.java:127)
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:118)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:410)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:294)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:182)

TestCase class with testNothing method has both default constructor and
String argument constructor. Using M7.

Regards,
Vladimir
Previous Topic:Adding mySQL source
Next Topic:Drag an IJavaElement from package explorer
Goto Forum:
  


Current Time: Mon Jun 02 18:12:08 EDT 2025

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

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

Back to the top