All Classes and Interfaces

Class
Description
An Assertion encapsulates the code of an assertion into an object.
 
The ClearSystemProperties rule clears a set of system properties when the test starts and restores their original values when the test finishes (whether it passes or fails).
 
 
DisallowWriteToSystemErr lets a test fail if it tries to write something to System.err.
DisallowWriteToSystemOut lets a test fail if it tries to write something to System.out.
The EnvironmentVariables rule allows you to set environment variables for your test.
The ExpectedSystemExit allows in-test specification of expected System.exit(...) calls.
Deprecated.
This enum is no longer needed, because all rules that are using it have been replaced with rules that don't need the enum.
 
 
A NoExitSecurityManager throws a CheckExitCalled exception whenever NoExitSecurityManager.checkExit(int) is called.
 
The ProvideSecurityManager rule provides an arbitrary security manager to a test.
The ProvideSystemProperty rule provides an arbitrary value for a system property to a test.
 
The RestoreSystemProperties rule undoes changes of system properties when the test finishes (whether it passes or fails).
Deprecated.
Please use SystemErrRule.
Deprecated.
Please use SystemOutRule.
The SystemErrRule intercepts the writes to System.err.
The SystemOutRule intercepts the writes to System.out.
The TextFromStandardInputStream rule replaces System.in with another InputStream, which provides an arbitrary text.