RestoreSystemProperties restores all properties
automatically. That's why you don't have to add the properties
anymore.Assertion encapsulates the code of an assertion into an object.RestoreSystemProperties
along with System.clearProperty(String).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).ClearSystemProperties rule that clears the specified
properties and restores their original values when the test finishes
(whether it passes or fails).ExpectedSystemExit allows in-test specification of expected
System.exit(...) calls.StandardErrorStreamLog
and the StandardOutputStreamLog.NoExitSecurityManager throws a CheckExitCalled exception
whenever NoExitSecurityManager.checkExit(int) is called.ProvideSecurityManager rule provides an arbitrary security
manager to a test.ProvideSystemProperty rule provides an arbitrary value for a
system property to a test.RestoreSystemProperties rule undoes changes of system
properties when the test finishes (whether it passes or fails).RestoreSystemProperties.RestoreSystemProperties(). The
rule restores all properties. That's why you don't have to
specify the properties anymore.RestoreSystemProperties rule that restores all
system properties.RestoreSystemProperties
along with System.setProperty(String, String).StandardErrorStreamLog records writes to the standard error
stream.LogMode.StandardOutputStreamLog records writes to the standard output
stream.LogMode.TextFromStandardInputStream rule replaces System.in with
another InputStream, which provides an arbitrary text.Copyright © 2011-2015. All Rights Reserved.