@Test public void authenticate_notDelegated() { Goldfinger.PromptParams params = params(); rxGoldfinger.authenticate(params); verify(goldfinger, never()).authenticate(eq(params), any(Goldfinger.Callback.class)); }
@NonNull @Override public Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params) { return Observable.create(new ObservableOnSubscribe<Goldfinger.Result>() { @Override public void subscribe(ObservableEmitter<Goldfinger.Result> observableEmitter) { callback = new RxGoldfingerCallback(observableEmitter); goldfinger.authenticate(params, callback); } }); }
RxGoldfingerImpl implements RxGoldfinger { @NonNull @Override public Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params) { return Observable.create(new ObservableOnSubscribe<Goldfinger.Result>() { @Override public void subscribe(ObservableEmitter<Goldfinger.Result> observableEmitter) { callback = new RxGoldfingerCallback(observableEmitter); goldfinger.authenticate(params, callback); } }); } }
RxGoldfingerImpl implements RxGoldfinger { @NonNull @Override public Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params) { return Observable.create(new ObservableOnSubscribe<Goldfinger.Result>() { @Override public void subscribe(ObservableEmitter<Goldfinger.Result> observableEmitter) { callback = new RxGoldfingerCallback(observableEmitter); goldfinger.authenticate(params, callback); } }); } RxGoldfingerImpl(@NonNull Goldfinger goldfinger); }
RxGoldfingerImpl implements RxGoldfinger { @NonNull @Override public Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params) { return Observable.create(new ObservableOnSubscribe<Goldfinger.Result>() { @Override public void subscribe(ObservableEmitter<Goldfinger.Result> observableEmitter) { callback = new RxGoldfingerCallback(observableEmitter); goldfinger.authenticate(params, callback); } }); } RxGoldfingerImpl(@NonNull Goldfinger goldfinger); @NonNull @Override Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params); @Override boolean canAuthenticate(); @Override void cancel(); @Override Observable<Goldfinger.Result> decrypt(
        @NonNull final Goldfinger.PromptParams params,
        @NonNull final String key,
        @NonNull final String value
    ); @Override Observable<Goldfinger.Result> encrypt(
        @NonNull final Goldfinger.PromptParams params,
        @NonNull final String key,
        @NonNull final String value
    ); @Override boolean hasEnrolledFingerprint(); @Override boolean hasFingerprintHardware(); }
RxGoldfingerImpl implements RxGoldfinger { @NonNull @Override public Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params) { return Observable.create(new ObservableOnSubscribe<Goldfinger.Result>() { @Override public void subscribe(ObservableEmitter<Goldfinger.Result> observableEmitter) { callback = new RxGoldfingerCallback(observableEmitter); goldfinger.authenticate(params, callback); } }); } RxGoldfingerImpl(@NonNull Goldfinger goldfinger); @NonNull @Override Observable<Goldfinger.Result> authenticate(@NonNull final Goldfinger.PromptParams params); @Override boolean canAuthenticate(); @Override void cancel(); @Override Observable<Goldfinger.Result> decrypt(
        @NonNull final Goldfinger.PromptParams params,
        @NonNull final String key,
        @NonNull final String value
    ); @Override Observable<Goldfinger.Result> encrypt(
        @NonNull final Goldfinger.PromptParams params,
        @NonNull final String key,
        @NonNull final String value
    ); @Override boolean hasEnrolledFingerprint(); @Override boolean hasFingerprintHardware();  }