Skip to content

Commit

Permalink
re-enable testCustomExecutor
Browse files Browse the repository at this point in the history
  • Loading branch information
biyuhao committed Dec 7, 2018
1 parent 5b000a3 commit 065a5d9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ public void run() {


@Test
@Ignore
public void testCustomExecutor() {
Executor mockedExecutor = mock(Executor.class);
CompletableFuture<Integer> completableFuture = CompletableFuture.supplyAsync(() -> {
return 0;
});
completableFuture.thenRunAsync(mock(Runnable.class), mockedExecutor);
verify(mockedExecutor, times(1)).execute(any());
verify(mockedExecutor, times(1)).execute(any(Runnable.class));
}
}

0 comments on commit 065a5d9

Please sign in to comment.