A set of assertion methods useful for writing tests.
Default empty exception
Thrown when an
assertEquals(String, String) fails.
If you allocate external resources in a
Before method you need to release them
after the test runs.
If you allocate expensive external resources in a
BeforeClass method you need to release them
after all the tests in the class have run.
When writing tests, it is common to find that several tests need similar objects created before they can run.
Sometimes several tests need to share computationally expensive setup (like logging into a database).
Sometimes you want to temporarily disable a test or a group of tests.
@RepeatedTest is used to signal that the annotated method is a
test template method that should be repeated a specified number of times.
Test annotation tells JUnit that the
public void method to which it is attached can be
run as a test case.