no

How to Fix Expected Exception Failed in Junit

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


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-testing 6010158845074779394

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item