This section contains the detail about Running Example code & JUnit Uninstallation.
Running Example code & JUnit Uninstallation
Running Example Code
You can test the installation & class path setting (done in the previous section) by running the example code distributed with JUnit setup(.zip file). For this simply type the following on command prompt :
java org.junit.runner.JUnitCore org.junit.tests.AllTests
The output should be look like this :
All the tests should pass with an "OK" message.
If the tests don't pass, verify that junit.jar is in the CLASSPATH.
Above given command will run a Test Suite Class "AllTests" which contains all the Test classes.
JUnit Uninstallation
-
Delete the directory structure where you unzipped the JUnit distribution.
-
Remove junit.jar from the CLASSPATH.
Note : JUnit does not modify the registry so simply removing all the files will fully uninstall it.
[ 0 ] Comments