- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
@Override public CompletableFuture<BotApiResponse> leaveGroup(final String groupId) { return toFuture(retrofitImpl.leaveGroup(groupId)); }
@Test public void leaveGroupTest() throws Exception { whenCall(retrofitMock.leaveGroup(any()), BOT_API_SUCCESS_RESPONSE); // Do final BotApiResponse botApiResponse = target.leaveGroup("ID").get(); // Verify verify(retrofitMock, only()).leaveGroup("ID"); assertThat(botApiResponse).isEqualTo(BOT_API_SUCCESS_RESPONSE); }