@Test public void setBufferTest() throws InterruptedException, ExecutionException { var buffer = new Buffer(1); assertNormalBehavior( () -> CompletableFuture.completedFuture(new ResponseMessage(1, null, null)), () -> windowStreamApi.setBuffer(buffer), request -> assertMethodAndArguments(request, NeovimWindowApi.SET_BUFFER, window, buffer) ); assertErrorBehavior( () -> windowStreamApi.setBuffer(buffer), request -> assertMethodAndArguments(request, NeovimWindowApi.SET_BUFFER, window, buffer) ); }
@Override public CompletableFuture<Void> setBuffer(Buffer buffer) { return sendWithNoResponse(prepareMessage(SET_BUFFER).addArgument(buffer)); }
WindowStreamApi extends BaseStreamApi implements NeovimWindowApi { @Override public CompletableFuture<Void> setBuffer(Buffer buffer) { return sendWithNoResponse(prepareMessage(SET_BUFFER).addArgument(buffer)); } }
WindowStreamApi extends BaseStreamApi implements NeovimWindowApi { @Override public CompletableFuture<Void> setBuffer(Buffer buffer) { return sendWithNoResponse(prepareMessage(SET_BUFFER).addArgument(buffer)); } WindowStreamApi(ReactiveRpcStreamer reactiveRpcStreamer, Window model); }
WindowStreamApi extends BaseStreamApi implements NeovimWindowApi { @Override public CompletableFuture<Void> setBuffer(Buffer buffer) { return sendWithNoResponse(prepareMessage(SET_BUFFER).addArgument(buffer)); } WindowStreamApi(ReactiveRpcStreamer reactiveRpcStreamer, Window model); @Override Window get(); @Override CompletableFuture<NeovimBufferApi> getBuffer(); @Override CompletableFuture<Void> setBuffer(Buffer buffer); @Override CompletableFuture<VimCoords> getCursor(); @Override CompletableFuture<Void> setCursor(VimCoords vimCoords); @Override CompletableFuture<Integer> getHeight(); @Override CompletableFuture<Void> setHeight(int height); @Override CompletableFuture<Integer> getWidth(); @Override CompletableFuture<Void> setWidth(int width); @Override CompletableFuture<Object> getVar(String name); @Override CompletableFuture<Void> setVar(String name, Object value); @Override CompletableFuture<Void> deleteVar(String name); @Override CompletableFuture<Object> getOption(String name); @Override CompletableFuture<Void> setOption(String name, Object value); @Override CompletableFuture<Map<String, Object>> getConfig(); @Override CompletableFuture<Void> setConfig(Map<String, Object> config); @Override CompletableFuture<NeovimTabpageApi> getTabpage(); @Override CompletableFuture<Integer> getNumber(); @Override CompletableFuture<Boolean> isValid(); @Override CompletableFuture<Void> close(boolean force); @Override String toString(); }
WindowStreamApi extends BaseStreamApi implements NeovimWindowApi { @Override public CompletableFuture<Void> setBuffer(Buffer buffer) { return sendWithNoResponse(prepareMessage(SET_BUFFER).addArgument(buffer)); } WindowStreamApi(ReactiveRpcStreamer reactiveRpcStreamer, Window model); @Override Window get(); @Override CompletableFuture<NeovimBufferApi> getBuffer(); @Override CompletableFuture<Void> setBuffer(Buffer buffer); @Override CompletableFuture<VimCoords> getCursor(); @Override CompletableFuture<Void> setCursor(VimCoords vimCoords); @Override CompletableFuture<Integer> getHeight(); @Override CompletableFuture<Void> setHeight(int height); @Override CompletableFuture<Integer> getWidth(); @Override CompletableFuture<Void> setWidth(int width); @Override CompletableFuture<Object> getVar(String name); @Override CompletableFuture<Void> setVar(String name, Object value); @Override CompletableFuture<Void> deleteVar(String name); @Override CompletableFuture<Object> getOption(String name); @Override CompletableFuture<Void> setOption(String name, Object value); @Override CompletableFuture<Map<String, Object>> getConfig(); @Override CompletableFuture<Void> setConfig(Map<String, Object> config); @Override CompletableFuture<NeovimTabpageApi> getTabpage(); @Override CompletableFuture<Integer> getNumber(); @Override CompletableFuture<Boolean> isValid(); @Override CompletableFuture<Void> close(boolean force); @Override String toString();  }