MCPcopy Create free account
hub / github.com/ReadyTalk/avian / main

Method main

test/CompletionServiceTest.java:8–19  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

6
7public class CompletionServiceTest {
8 public static void main(String args[]) throws InterruptedException, ExecutionException {
9 Executor dumbExecutor = new Executor() {
10 @Override
11 public void execute(Runnable task) {
12 new Thread(task).start();
13 }
14 };
15
16 pollNoResultTest(dumbExecutor);
17 pollTimeoutNoResultTest(dumbExecutor);
18 takeTest(dumbExecutor);
19 }
20
21 private static void verify(boolean val) {
22 if (! val) {

Callers

nothing calls this directly

Calls 3

pollNoResultTestMethod · 0.95
takeTestMethod · 0.95

Tested by

no test coverage detected