org.junit |
Provides JUnit core classes and annotations. |
Java Source File Name | Type | Comment |
After.java | Annotation | If you allocate external resources in a
org.junit.Before method you need to release them
after the test runs. |
AfterClass.java | Annotation | If you allocate expensive external resources in a
org.junit.BeforeClass method you need to release them
after all the tests in the class have run. |
Assert.java | Class | A set of assertion methods useful for writing tests. |
Assume.java | Class | |
Before.java | Annotation | When writing tests, it is common to find that several tests need similar
objects created before they can run. |
BeforeClass.java | Annotation | Sometimes several tests need to share computationally expensive setup
(like logging into a database). |
ComparisonFailure.java | Class | Thrown when an
org.junit.Assert.assertEquals(ObjectObject) assertEquals(String, String) fails. |
Ignore.java | Annotation | Sometimes you want to temporarily disable a test or a group of tests. |
package-info.java | | |
Test.java | Annotation | The Test annotation tells JUnit that the public void method
to which it is attached can be run as a test case. |