File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
dubbo-common/src/test/java/org/apache/dubbo/common/concurrent Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2020import static org .junit .Assert .assertThat ;
2121import static org .mockito .Mockito .mock ;
2222import static org .mockito .Mockito .verify ;
23+ import static org .mockito .ArgumentMatchers .any ;
24+ import static org .mockito .Mockito .times ;
2325
2426import java .util .concurrent .CompletableFuture ;
2527import java .util .concurrent .CountDownLatch ;
@@ -94,6 +96,7 @@ public void testCustomExecutor() {
9496 CompletableFuture <Integer > completableFuture = CompletableFuture .supplyAsync (() -> {
9597 return 0 ;
9698 });
97- completableFuture .thenRunAsync (mock (Runnable .class ), verify (mockedExecutor ));
99+ completableFuture .thenRunAsync (mock (Runnable .class ), mockedExecutor );
100+ verify (mockedExecutor , times (1 )).execute (any ());
98101 }
99102}
You can’t perform that action at this time.
0 commit comments