@Test public void hasNoSensePaired() throws Exception { final ArrayList<SenseDevice> senseDeviceList = new ArrayList<>(0); final Devices devicesList = new Devices(senseDeviceList, new ArrayList<>(0)); Sync.wrap(sleepSoundsInteractor.hasSensePaired(null)).assertThrows(SenseRequiredException.class); Sync.wrap(sleepSoundsInteractor.hasSensePaired(devicesList)).assertThrows(SenseRequiredException.class); }
public Observable<Boolean> hasSensePaired() { return apiService.registeredDevices() .flatMap(SleepSoundsInteractor.this::hasSensePaired); }
SleepSoundsInteractor extends ScopedValueInteractor<SleepSoundsStateDevice> { public Observable<Boolean> hasSensePaired() { return apiService.registeredDevices() .flatMap(SleepSoundsInteractor.this::hasSensePaired); } }
SleepSoundsInteractor extends ScopedValueInteractor<SleepSoundsStateDevice> { public Observable<Boolean> hasSensePaired() { return apiService.registeredDevices() .flatMap(SleepSoundsInteractor.this::hasSensePaired); }  }
SleepSoundsInteractor extends ScopedValueInteractor<SleepSoundsStateDevice> { public Observable<Boolean> hasSensePaired() { return apiService.registeredDevices() .flatMap(SleepSoundsInteractor.this::hasSensePaired); }  @Nullable @Override Bundle onSaveState(); Observable<VoidResponse> play(final @NonNull SleepSoundActionPlay actionPlay); Observable<VoidResponse> stop(final @NonNull SleepSoundActionStop actionStop); Observable<Boolean> hasSensePaired(); }
SleepSoundsInteractor extends ScopedValueInteractor<SleepSoundsStateDevice> { public Observable<Boolean> hasSensePaired() { return apiService.registeredDevices() .flatMap(SleepSoundsInteractor.this::hasSensePaired); }  @Nullable @Override Bundle onSaveState(); Observable<VoidResponse> play(final @NonNull SleepSoundActionPlay actionPlay); Observable<VoidResponse> stop(final @NonNull SleepSoundActionStop actionStop); Observable<Boolean> hasSensePaired(); final InteractorSubject<SleepSoundsStateDevice> combinedState; }