java.lang.Object |
↳ |
com.pnfsoftware.jeb.core.units.code.android.adb.AdbResult |
Class Overview
Represent a result from the command adb
.
Summary
Public Methods |
byte[]
|
getOutput()
|
String
|
getOutputString()
|
boolean
|
isSuccess(Boolean expectOuput)
|
boolean
|
isSuccess()
|
boolean
|
isSuccess(Boolean expectOuput, boolean verifyGenericErrors, String... knownErrorMessages)
Unified method to validate that an adb command was executed correctly
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constants
public
static
final
String
ADB_ERROR
Constant Value:
"adb_error_sent_to_jeb"
Public Constructors
public
AdbResult
(byte[] output)
Public Methods
public
byte[]
getOutput
()
public
String
getOutputString
()
public
boolean
isSuccess
(Boolean expectOuput)
public
boolean
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