| Modifier and Type | Method and Description |
|---|---|
static void |
SystemLambda.assertNothingWrittenToSystemErr(Statement statement)
Executes the statement and fails (throws an
AssertionError) if
the statement tries to write to System.err. |
static void |
SystemLambda.assertNothingWrittenToSystemOut(Statement statement)
Executes the statement and fails (throws an
AssertionError) if
the statement tries to write to System.out. |
static int |
SystemLambda.catchSystemExit(Statement statement)
Executes the statement and returns the status code that is provided to
System.exit(int) within the statement. |
void |
SystemLambda.SystemInStub.execute(Statement statement)
Executes the statement and lets
System.in provide the
specified text during the execution. |
void |
SystemLambda.WithEnvironmentVariables.execute(Statement statement)
Executes a statement with environment variable values according to
what was set before.
|
static void |
SystemLambda.muteSystemErr(Statement statement)
Executes the statement and suppresses the output of the statement to
System.err. |
static void |
SystemLambda.muteSystemOut(Statement statement)
Executes the statement and suppresses the output of the statement to
System.out. |
static void |
SystemLambda.restoreSystemProperties(Statement statement)
Executes the statement and restores the system properties after the
statement has been executed.
|
static String |
SystemLambda.tapSystemErr(Statement statement)
Executes the statement and returns the text that was written to
System.err by the statement. |
static String |
SystemLambda.tapSystemErrNormalized(Statement statement)
Executes the statement and returns the text that was written to
System.err by the statement. |
static String |
SystemLambda.tapSystemOut(Statement statement)
Executes the statement and returns the text that was written to
System.out by the statement. |
static String |
SystemLambda.tapSystemOutNormalized(Statement statement)
Executes the statement and returns the text that was written to
System.out by the statement. |
static void |
SystemLambda.withSecurityManager(SecurityManager securityManager,
Statement statement)
Executes the statement with the provided security manager.
|
Copyright © 2020. All rights reserved.