@Test public void onScanFailed() { cut.onScanFailed(123); verifyLogger().onScanFailed(123); verifyWrappedCallback().onScanFailed(123); }
@Override public void onScanFailed(int errorCode) { logger.onScanFailed(errorCode); callback.onScanFailed(errorCode); }
DebugScanCallback extends ScanCallback implements LogControl { @Override public void onScanFailed(int errorCode) { logger.onScanFailed(errorCode); callback.onScanFailed(errorCode); } }
DebugScanCallback extends ScanCallback implements LogControl { @Override public void onScanFailed(int errorCode) { logger.onScanFailed(errorCode); callback.onScanFailed(errorCode); } @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull String logTag,
                             @NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"}) @VisibleForTesting  DebugScanCallback(
            @NonNull final String logTag,
            @NonNull final ScanCallbackLogger logger,
            @NonNull final ScanCallback callback); }
DebugScanCallback extends ScanCallback implements LogControl { @Override public void onScanFailed(int errorCode) { logger.onScanFailed(errorCode); callback.onScanFailed(errorCode); } @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull String logTag,
                             @NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"}) @VisibleForTesting  DebugScanCallback(
            @NonNull final String logTag,
            @NonNull final ScanCallbackLogger logger,
            @NonNull final ScanCallback callback); @Override void onScanResult(int callbackType, ScanResult result); @Override void onBatchScanResults(List<ScanResult> results); @Override void onScanFailed(int errorCode); @Override boolean isLoggingEnabled(); @Override void setLoggingEnabled(final boolean enabled); }
DebugScanCallback extends ScanCallback implements LogControl { @Override public void onScanFailed(int errorCode) { logger.onScanFailed(errorCode); callback.onScanFailed(errorCode); } @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"})  DebugScanCallback(@NonNull String logTag,
                             @NonNull final ScanCallback callback); @SuppressWarnings({"unused", "WeakerAccess"}) @VisibleForTesting  DebugScanCallback(
            @NonNull final String logTag,
            @NonNull final ScanCallbackLogger logger,
            @NonNull final ScanCallback callback); @Override void onScanResult(int callbackType, ScanResult result); @Override void onBatchScanResults(List<ScanResult> results); @Override void onScanFailed(int errorCode); @Override boolean isLoggingEnabled(); @Override void setLoggingEnabled(final boolean enabled);  }