java.lang.Object
com.pnfsoftware.jeb.core.units.code.android.adb.AdbResult

public class AdbResult extends Object
Represent a result from the command adb.
  • Field Details

  • Constructor Details

    • AdbResult

      public AdbResult(byte[] output)
  • Method Details

    • getOutput

      public byte[] getOutput()
    • getOutputString

      public String getOutputString()
    • isSuccess

      public boolean isSuccess()
    • isSuccess

      public boolean isSuccess(Boolean expectOuput)
    • 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