Package org.junit.contrib.java.lang.system
package org.junit.contrib.java.lang.system
-
ClassDescriptionAn
Assertionencapsulates the code of an assertion into an object.TheClearSystemPropertiesrule clears a set of system properties when the test starts and restores their original values when the test finishes (whether it passes or fails).DisallowWriteToSystemErrlets a test fail if it tries to write something toSystem.err.DisallowWriteToSystemOutlets a test fail if it tries to write something toSystem.out.TheEnvironmentVariablesrule allows you to set environment variables for your test.TheExpectedSystemExitallows in-test specification of expectedSystem.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.TheProvideSecurityManagerrule provides an arbitrary security manager to a test.TheProvideSystemPropertyrule provides an arbitrary value for a system property to a test.TheRestoreSystemPropertiesrule undoes changes of system properties when the test finishes (whether it passes or fails).Deprecated.Please useSystemErrRule.Deprecated.Please useSystemOutRule.TheSystemErrRuleintercepts the writes toSystem.err.TheSystemOutRuleintercepts the writes toSystem.out.TheTextFromStandardInputStreamrule replacesSystem.inwith anotherInputStream, which provides an arbitrary text.