# | Line 87 | Line 87 | public class ExecutorCompletionServiceTe | |
---|---|---|
87 | Callable c = new StringTask(); | |
88 | ecs.submit(c); | |
89 | Future f = ecs.take(); | |
90 | < | assert(f.isDone()); |
90 | > | assertTrue(f.isDone()); |
91 | } catch (Exception ex) { | |
92 | unexpectedException(); | |
93 | } finally { | |
# | Line 127 | Line 127 | public class ExecutorCompletionServiceTe | |
127 | for (;;) { | |
128 | Future f = ecs.poll(); | |
129 | if (f != null) { | |
130 | < | assert(f.isDone()); |
130 | > | assertTrue(f.isDone()); |
131 | break; | |
132 | } | |
133 | } | |
# | Line 150 | Line 150 | public class ExecutorCompletionServiceTe | |
150 | ecs.submit(c); | |
151 | Future f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS); | |
152 | if (f != null) | |
153 | < | assert(f.isDone()); |
153 | > | assertTrue(f.isDone()); |
154 | } catch (Exception ex) { | |
155 | unexpectedException(); | |
156 | } finally { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |