@Test public void delegatesValidity() { given(neovimTabpageApi.isValid()).willReturn(CompletableFuture.completedFuture(true)); neovimTabpageRxWrapper.isValid() .test() .assertNoErrors() .assertComplete() .assertValue(true); verify(neovimTabpageApi).isValid(); }
@Override public Single<Boolean> isValid() { return Single.fromFuture(neovimTabpageApi.isValid()); }
NeovimTabpageRxWrapper implements NeovimTabpageRxApi { @Override public Single<Boolean> isValid() { return Single.fromFuture(neovimTabpageApi.isValid()); } }
NeovimTabpageRxWrapper implements NeovimTabpageRxApi { @Override public Single<Boolean> isValid() { return Single.fromFuture(neovimTabpageApi.isValid()); } NeovimTabpageRxWrapper(NeovimTabpageApi neovimTabpageApi); }
NeovimTabpageRxWrapper implements NeovimTabpageRxApi { @Override public Single<Boolean> isValid() { return Single.fromFuture(neovimTabpageApi.isValid()); } NeovimTabpageRxWrapper(NeovimTabpageApi neovimTabpageApi); @Override Tabpage get(); @Override Single<List<NeovimWindowRxApi>> getWindows(); @Override Single<NeovimWindowRxApi> getWindow(); @Override Single<Object> getVar(String name); @Override Completable setVar(String name, Object value); @Override Completable deleteVar(String name); @Override Single<Integer> getNumber(); @Override Single<Boolean> isValid(); }
NeovimTabpageRxWrapper implements NeovimTabpageRxApi { @Override public Single<Boolean> isValid() { return Single.fromFuture(neovimTabpageApi.isValid()); } NeovimTabpageRxWrapper(NeovimTabpageApi neovimTabpageApi); @Override Tabpage get(); @Override Single<List<NeovimWindowRxApi>> getWindows(); @Override Single<NeovimWindowRxApi> getWindow(); @Override Single<Object> getVar(String name); @Override Completable setVar(String name, Object value); @Override Completable deleteVar(String name); @Override Single<Integer> getNumber(); @Override Single<Boolean> isValid();  }