Index

A E S T U 
All Classes and Interfaces|All Packages

A

and(String, String) - Method in class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
apply(Statement, Description) - Method in interface uk.org.webcompere.systemstubs.rules.internal.SystemStubTestRule
 

E

EnvironmentVariablesRule - Class in uk.org.webcompere.systemstubs.rules
JUnit 4 rule which sets up the environment variables around whatever JUnit 4 is running
EnvironmentVariablesRule() - Constructor for class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
Default constructor provides restoration of the environment and the ability to set values
EnvironmentVariablesRule(String, String, String...) - Constructor for class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
Construct with variables that will be set when the rule is active
EnvironmentVariablesRule(Map<String, String>) - Constructor for class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
Construct with some variables to apply when active
EnvironmentVariablesRule(Properties) - Constructor for class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
Construct with some variables to apply when active

S

SecurityManagerRule - Class in uk.org.webcompere.systemstubs.rules
Set an alternative security manager within tests
SecurityManagerRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SecurityManagerRule
Default constructor - use this when the security manager will be set in-flight
SecurityManagerRule(SecurityManager) - Constructor for class uk.org.webcompere.systemstubs.rules.SecurityManagerRule
Construct with a specific security manager to use
set(String, String) - Method in class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
set(String, String) - Method in class uk.org.webcompere.systemstubs.rules.SystemPropertiesRule
set(Map<Object, Object>) - Method in class uk.org.webcompere.systemstubs.rules.EnvironmentVariablesRule
set(Map<Object, Object>) - Method in class uk.org.webcompere.systemstubs.rules.SystemPropertiesRule
Statements - Class in uk.org.webcompere.systemstubs.rules.internal
JUnit4 Statement helper
Statements() - Constructor for class uk.org.webcompere.systemstubs.rules.internal.Statements
 
SystemErrAndOutRule - Class in uk.org.webcompere.systemstubs.rules
JUnit4 rule for tapping both System.err and System.out at the same time with the same Output
SystemErrAndOutRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrAndOutRule
Default constructor - uses a TapStream
SystemErrAndOutRule(Output) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrAndOutRule
Construct with a shared Output
SystemErrAndOutRule(OutputFactory<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrAndOutRule
Construct with an output shared from the an output created against the System.out original
SystemErrRule - Class in uk.org.webcompere.systemstubs.rules
JUnit4 test rule that captures System.err during tests.
SystemErrRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrRule
Default constructor, uses a TapStream to tap system error while the rule is active
SystemErrRule(Output<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrRule
Construct with an alternative Output to use
SystemErrRule(OutputFactory<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrRule
Construct with a OutputFactory for creating output objects from the existing output
SystemExitRule - Class in uk.org.webcompere.systemstubs.rules
Add to a test to catch System exit events
SystemExitRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemExitRule
 
SystemInRule - Class in uk.org.webcompere.systemstubs.rules
The SystemIn system stub as a JUnit 4 test rule
SystemInRule(InputStream) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemInRule
Construct with an input stream to read from - this will be closed on tidy up
SystemInRule(String...) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemInRule
Construct with multiple lines on System.in
SystemInRule(AltInputStream) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemInRule
Construct with any of the AltInputStream objects - e.g.
SystemOutRule - Class in uk.org.webcompere.systemstubs.rules
JUnit4 test rule that captures System.out during tests.
SystemOutRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemOutRule
Default constructor, uses a TapStream to tap system out while the rule is active
SystemOutRule(Output<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemOutRule
Construct with an alternative Output to use
SystemOutRule(OutputFactory<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemOutRule
Construct with a OutputFactory for creating output objects from the existing output
SystemPropertiesRule - Class in uk.org.webcompere.systemstubs.rules
Returns the system properties to their original state around each test block.
SystemPropertiesRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemPropertiesRule
Default constructor provides restoration of properties
SystemPropertiesRule(String, String, String...) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemPropertiesRule
Construct with a variable number of properties that will be set when the rule is active
SystemPropertiesRule(Properties) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemPropertiesRule
Construct with some properties to apply when active
SystemStubTestRule - Interface in uk.org.webcompere.systemstubs.rules.internal
Common implementation to convert the TestRule interface into utilisation of the TestResource interface.

T

toStatement(Statement, TestResource) - Static method in class uk.org.webcompere.systemstubs.rules.internal.Statements
Convert executing the test resource into a statement

U

uk.org.webcompere.systemstubs.rules - package uk.org.webcompere.systemstubs.rules
 
uk.org.webcompere.systemstubs.rules.internal - package uk.org.webcompere.systemstubs.rules.internal
 
A E S T U 
All Classes and Interfaces|All Packages