Library:JUnit
Version:4.1
Compatibility:JDK 1.5
Annotations in library JUnit.
NamePackageDescription
Afterorg.junitIf you allocate external resources in a Before method you need to release them after the test runs.
AfterClassorg.junitIf you allocate expensive external resources in a BeforeClass method you need to release them after all the tests in the class have run.
Beforeorg.junitWhen writing tests, it is common to find that several tests need similar objects created before they can run.
BeforeClassorg.junitSometimes several tests need to share computationally expensive setup (like logging into a database).
Ignoreorg.junitSometimes you want to temporarily disable a test.
Parameterized.Parametersorg.junit.runnersNo description provided.
RunWithorg.junit.runnerWhen a class is annotated with @RunWith or extends a class annotated with @RunWith, JUnit will invoke the class it references to run the tests in that class instead of the runner built into JUnit.
Suite.SuiteClassesorg.junit.runnersThe SuiteClasses annotation specifies the classes to be run when a class annotated with @RunWith(Suite.class) is run.
Testorg.junitThe Test annotation tells JUnit that the public void method to which it is attached can be run as a test case.
Search