Package io.skodjob.testframe.executor
Class ExecResult
java.lang.Object
io.skodjob.testframe.executor.ExecResult
- All Implemented Interfaces:
Serializable
Represents the result of an execution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExecResult(int returnCode, String stdOut, String stdErr) Constructs a new ExecResult with the specified return code, standard output, and standard error. -
Method Summary
-
Constructor Details
-
ExecResult
Constructs a new ExecResult with the specified return code, standard output, and standard error.- Parameters:
returnCode- The return code.stdOut- The standard output.stdErr- The standard error.
-
-
Method Details
-
exitStatus
public boolean exitStatus()Checks if the execution was successful.- Returns:
trueif the execution was successful,falseotherwise.
-
returnCode
public int returnCode()Gets the return code of the execution.- Returns:
- The return code.
-
out
Gets the standard output of the execution.- Returns:
- The standard output.
-
err
Gets the standard error of the execution.- Returns:
- The standard error.
-
toString
Returns a string representation of the ExecResult.
-