Class AsadminResult
java.lang.Object
org.glassfish.main.itest.tools.asadmin.AsadminResult
- Direct Known Subclasses:
DetachedTerseAsadminResult
Result of the
Asadmin execution.- Author:
- David Matejcek
-
Constructor Summary
ConstructorsConstructorDescriptionAsadminResult(String commandName, int exitCode, String stdOut, String stdErr) Creates a value object instance. -
Method Summary
-
Constructor Details
-
AsadminResult
Creates a value object instance.- Parameters:
commandName-exitCode-stdOut-stdErr-
-
-
Method Details
-
isError
public boolean isError()- Returns:
- true if the error code was not zero OR stdOut contained text Command x failed.
-
getStdOut
- Returns:
- standard output made by the command.
-
getStdErr
- Returns:
- error output made by the command.
-
getOutput
- Returns:
getStdOut()+getStdErr()
-
toString
ReturnsgetOutput(). Important for hamcrest matchers!
-