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

Method takeTest

test/CompletionServiceTest.java:42–53  ·  view source on GitHub ↗
(Executor executor)

Source from the content-addressed store, hash-verified

40 }
41
42 private static void takeTest(Executor executor) throws InterruptedException, ExecutionException {
43 ExecutorCompletionService<Object> ecs = new ExecutorCompletionService<Object>(executor);
44 final Object result = new Object();
45 ecs.submit(new Callable<Object>() {
46 @Override
47 public Object call() throws Exception {
48 return result;
49 }
50 });
51
52 verify(ecs.take().get() == result);
53 }
54}

Callers 1

mainMethod · 0.95

Calls 4

submitMethod · 0.95
verifyMethod · 0.95
takeMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected