no

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 exc...

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.

Related

java 6010158845074779394

Post a Comment

item