1. Create a JUnit test case as illustrated here
2. Select the test case which you want to run individually (.java file), right click on it.
3. Select Run As -> JUnit Test (see below figure)
4. The test results can be viewed under JUnit window (see below screen shot)
2. Select the test case which you want to run individually (.java file), right click on it.
3. Select Run As -> JUnit Test (see below figure)
Figure: Running JUnit Test Case |
Figure: JUnit Test Result |
No comments:
Post a Comment