April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Running JUnit4 tests with JUnit3.8 runner
nUse a normal class and not extend from junit.framework.TestCase. nUse the Test annotation to mark a method as a test method. To use the Test annotation import org.junit.Test nRun the test using JUnit4TestAdapter. If you want to learn more about JUnit4TestAdapter, keep reading ahead. nAlternatively, you can use the JUnitCore class in the org.junit.runner package. JUnit 4 runner can also run tests written using the old JUnit. To run the tests using the JUnitCore class via the command line, type:
n java org.junit.runner.JUnitCore LibraryTest