public class RestartCommandTest.TestExecutor extends java.lang.Object implements Executor
Constructor and Description |
---|
TestExecutor() |
Modifier and Type | Method and Description |
---|---|
int |
execute(java.lang.String[] args)
Execute any command with the passed in arguments.
|
java.lang.String |
getLastCommandErrorMessage()
Returns the error message captured during the last command executed.
|
java.lang.String |
getLastCommandOutput()
Returns the output captured during the last command executed.
|
public int execute(java.lang.String[] args)
Executor
public java.lang.String getLastCommandOutput()
Executor
getLastCommandOutput
in interface Executor
null
if no command has been executed; the empty string
if there was no output from the commandpublic java.lang.String getLastCommandErrorMessage()
Executor
getLastCommandErrorMessage
in interface Executor
null
if no command has been executed; the empty string
if there was no error from the command