Class ExecResult

java.lang.Object
io.skodjob.testframe.executor.ExecResult
All Implemented Interfaces:
Serializable

public class ExecResult extends Object implements Serializable
Represents the result of an execution.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ExecResult(int returnCode, String stdOut, String stdErr)
    Constructs a new ExecResult with the specified return code, standard output, and standard error.
  • Method Summary

    Modifier and Type
    Method
    Description
    err()
    Gets the standard error of the execution.
    boolean
    Checks if the execution was successful.
    out()
    Gets the standard output of the execution.
    int
    Gets the return code of the execution.
    Returns a string representation of the ExecResult.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ExecResult

      public ExecResult(int returnCode, String stdOut, String stdErr)
      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:
      true if the execution was successful, false otherwise.
    • returnCode

      public int returnCode()
      Gets the return code of the execution.
      Returns:
      The return code.
    • out

      public String out()
      Gets the standard output of the execution.
      Returns:
      The standard output.
    • err

      public String err()
      Gets the standard error of the execution.
      Returns:
      The standard error.
    • toString

      public String toString()
      Returns a string representation of the ExecResult.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the ExecResult.