ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ExecutorCompletionServiceTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ExecutorCompletionServiceTest.java (file contents):
Revision 1.2 by dl, Sat Dec 27 19:26:43 2003 UTC vs.
Revision 1.3 by dl, Tue May 3 16:02:00 2005 UTC

# 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 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines