(String args[])
| 6 | |
| 7 | public 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) { |
nothing calls this directly
no test coverage detected