Index
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
Statementhelper - Statements() - Constructor for class uk.org.webcompere.systemstubs.rules.internal.Statements
- SystemErrAndOutRule - Class in uk.org.webcompere.systemstubs.rules
- 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.outoriginal - SystemErrRule - Class in uk.org.webcompere.systemstubs.rules
-
JUnit4 test rule that captures
System.errduring tests. - SystemErrRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrRule
-
Default constructor, uses a
TapStreamto 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
Outputto use - SystemErrRule(OutputFactory<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemErrRule
-
Construct with a
OutputFactoryfor 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
SystemInsystem 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
AltInputStreamobjects - e.g. - SystemOutRule - Class in uk.org.webcompere.systemstubs.rules
-
JUnit4 test rule that captures
System.outduring tests. - SystemOutRule() - Constructor for class uk.org.webcompere.systemstubs.rules.SystemOutRule
-
Default constructor, uses a
TapStreamto 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
Outputto use - SystemOutRule(OutputFactory<? extends OutputStream>) - Constructor for class uk.org.webcompere.systemstubs.rules.SystemOutRule
-
Construct with a
OutputFactoryfor 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
TestRuleinterface into utilisation of theTestResourceinterface.
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
All Classes and Interfaces|All Packages