Class ShellResult

java.lang.Object
org.opentestfactory.utils.shell.ShellResult

public class ShellResult extends Object
Immutable data object to hold the result of a Shell command execution.
Author:
edegenetais
  • Constructor Details

    • ShellResult

      public ShellResult(int exitValue, String stdout, String stderr, String command)
      Constructor with complete initialization.
      Parameters:
      exitValue - exit value of the process.
      stdout - contents emitted by the child process on stdout
      stderr - contents emitted by the child process on stderr
      command - the executed command
  • Method Details

    • getExitValue

      public int getExitValue()
      Returns:
      the exit value of the child process.
    • getStdout

      public String getStdout()
      Returns:
      the standard output of the child process.
    • getStderr

      public String getStderr()
      Returns:
      the standard error stream of the child process.
    • getCommand

      public String getCommand()