@Test public void testOnError() { setupDescriptorSuccess(); subscribeCommand.execute(device, operationCommandObserver, gatt); subscribeCommand.onError(BluetoothGatt.GATT_FAILURE); verifyCommandFail(subscribeCommand, BluetoothGatt.GATT_FAILURE); }
@Override protected void onError(int error) { finish(CommandResult.createErrorResult(characteristicUUID, error)); }
SubscribeCommand extends SingleCharacteristicsCommand { @Override protected void onError(int error) { finish(CommandResult.createErrorResult(characteristicUUID, error)); } }
SubscribeCommand extends SingleCharacteristicsCommand { @Override protected void onError(int error) { finish(CommandResult.createErrorResult(characteristicUUID, error)); } SubscribeCommand(@Type int type, UUID serviceUUID, UUID characteristicUUID, CommandObserver observer); }
SubscribeCommand extends SingleCharacteristicsCommand { @Override protected void onError(int error) { finish(CommandResult.createErrorResult(characteristicUUID, error)); } SubscribeCommand(@Type int type, UUID serviceUUID, UUID characteristicUUID, CommandObserver observer); @Override String toString(); }
SubscribeCommand extends SingleCharacteristicsCommand { @Override protected void onError(int error) { finish(CommandResult.createErrorResult(characteristicUUID, error)); } SubscribeCommand(@Type int type, UUID serviceUUID, UUID characteristicUUID, CommandObserver observer); @Override String toString();  }