Package org.opentestfactory.utils.shell
Class ShellResult
java.lang.Object
org.opentestfactory.utils.shell.ShellResult
Immutable data object to hold the result of a Shell command execution.
- Author:
- edegenetais
-
Constructor Summary
ConstructorsConstructorDescriptionShellResult(int exitValue, String stdout, String stderr, String command) Constructor with complete initialization. -
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
ShellResult
Constructor with complete initialization.- Parameters:
exitValue- exit value of the process.stdout- contents emitted by the child process on stdoutstderr- contents emitted by the child process on stderrcommand- the executed command
-
-
Method Details
-
getExitValue
public int getExitValue()- Returns:
- the exit value of the child process.
-
getStdout
- Returns:
- the standard output of the child process.
-
getStderr
- Returns:
- the standard error stream of the child process.
-
getCommand
-