Class AdbResult
java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.adb.AdbResult
Represent a result from the command
adb
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
boolean
boolean
boolean
Unified method to validate that an adb command was executed correctly
-
Field Details
-
ADB_ERROR
- See Also:
-
-
Constructor Details
-
AdbResult
public AdbResult(byte[] output)
-
-
Method Details
-
getOutput
public byte[] getOutput() -
getOutputString
-
isSuccess
public boolean isSuccess() -
isSuccess
-
isSuccess
public boolean isSuccess(Boolean expectOuput, boolean verifyGenericErrors, String... knownErrorMessages) Unified method to validate that an adb command was executed correctly- Parameters:
expectOuput
- Indicate if there is an expected output stream result. Set null to bypass, true to check that there is an output message, false to check that there is not.verifyGenericErrors
- Indicate if we should verify some common error messages.knownErrorMessages
- Specific known error messages raised by this command.- Returns:
- true on success, false on error
-