Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

JUnit 4.7 expected exception failed

I recently downloaded the new version of JUnit which is 4.7 and linked it to my project. Then all the test cases that should be ok if an exception is encountered failed.

My immediate solution was to remove the extends TestCase to each test classes. With this the JUnitTestSuite will not function anymore. To run all the test cases in a package, just right click the package and select Run As->JUnit Test, this will run all the methods with @Test in all the class in that package.
JUnit 4.7 expected exception failed JUnit 4.7 expected exception failed Reviewed by czetsuya on Monday, October 12, 2009 Rating: 5

No comments:

Powered by Blogger.