Package org.junit.contrib.java.lang.system

Interface Summary
Assertion An Assertion encapsulates the code of an assertion into an object.
 

Class Summary
ClearSystemProperties 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 DisallowWriteToSystemErr lets a test fail if it tries to write something to System.err.
DisallowWriteToSystemOut DisallowWriteToSystemOut lets a test fail if it tries to write something to System.out.
EnvironmentVariables The EnvironmentVariables rule allows you to set environment variables for your test.
ExpectedSystemExit The ExpectedSystemExit allows in-test specification of expected System.exit(...) calls.
ProvideSecurityManager The ProvideSecurityManager rule provides an arbitrary security manager to a test.
ProvideSystemProperty The ProvideSystemProperty rule provides an arbitrary value for a system property to a test.
RestoreSystemProperties The RestoreSystemProperties rule undoes changes of system properties when the test finishes (whether it passes or fails).
StandardErrorStreamLog Deprecated. Please use SystemErrRule.
StandardOutputStreamLog Deprecated. Please use SystemOutRule.
SystemErrRule The SystemErrRule intercepts the writes to System.err.
SystemOutRule The SystemOutRule intercepts the writes to System.out.
TextFromStandardInputStream The TextFromStandardInputStream rule replaces System.in with another InputStream, which provides an arbitrary text.
 

Enum Summary
LogMode 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.
 



Copyright © 2011–2018. All rights reserved.