All Classes and Interfaces
Class
Description
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.Thrown when two array elements differ
Deprecated.
A set of assertion methods useful for writing tests.
Thrown when an assertion failed.
A set of methods useful for stating assumptions about the conditions in which a test is
meaningful.
An exception class used to implement assumptions (state in which a given test is
meaningful and should or should not be executed).
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).
Implements the JUnit 4 standard test case class model, as defined by the annotations in the
org.junit package.
Defines criteria for finding two items "equal enough".
Thrown when an assert equals for Strings failed.
Thrown when an
assertEquals(String, String) fails.This class allows the user to choose the order of execution of the methods within a test class.
Sometimes you want to temporarily disable a test or a group of tests.
Aliases the current default JUnit 4 class runner, for future-proofing.
Sort the methods into a specified execution order.
The custom runner
Parameterized implements parameterized tests.Annotation for
public static void methods which should be executed after evaluating
tests with particular parameters.Annotation for
public static void methods which should be executed before evaluating
tests with particular parameters.Annotation for fields of the test class which will be initialized by the method annotated by
Parameters.Annotation for a method which provides parameters to be injected into the test class
constructor by
Parameterized.Helpers that need a different implementation for J2kt.
A Protectable can be run and can throw a Throwable.
A
Runner runs tests and notifies a org.junit.runner.notification.RunNotifier
of significant events as it does so.When 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.Using
Suite as a runner allows you to manually
build a suite containing tests from many classes.The
SuiteClasses annotation specifies the classes to be run when a class
annotated with @RunWith(Suite.class) is run.The
Test annotation tells JUnit that the public void method
to which it is attached can be run as a test case.Default empty exception.
A test case defines the fixture to run multiple tests.
This interface facilitates the use of expectThrows from Java 8.
Assertinstead.