public class ExecResult
extends java.lang.Object
| Constructor and Description |
|---|
ExecResult(int returnCode,
java.util.List<java.lang.String> standardOut,
java.util.List<java.lang.String> standardErr)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getReturnCode()
Get the platform-specific return code of the external process.
|
java.util.List<java.lang.String> |
getStandardErr()
Get all text that was produced by the external process on standard error.
|
java.util.List<java.lang.String> |
getStandardOut()
Get all text that was produced by the external
process on standard out.
|
boolean |
wasSuccessful()
Allows to check if the test completed successfully.
|
public ExecResult(int returnCode,
java.util.List<java.lang.String> standardOut,
java.util.List<java.lang.String> standardErr)
returnCode - The return code.standardOut - A list of strings where each entry will be a line for the output stream.standardErr - A list of strings where each entry will be a line for the error stream.public boolean wasSuccessful()
public int getReturnCode()
public java.util.List<java.lang.String> getStandardErr()
public java.util.List<java.lang.String> getStandardOut()