Quantcast
Viewing all articles
Browse latest Browse all 12

JUnit Exceptions Test Example

In this example we are going to see how to use @Test annotation along with its optional parameter expected in JUnit testing framework. Also, we will see how to run our test case from the command line by using the org.junit.runner.JUnitCore. 1. Create the java class to be tested Create a folder named JUnitExceptions. This […]

Viewing all articles
Browse latest Browse all 12

Trending Articles