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.1 by dl, Tue Dec 23 19:40:24 2003 UTC vs.
Revision 1.3 by dl, Tue May 3 16:02:00 2005 UTC

# Line 1 | Line 1
1   /*
2 < * Written by members of JCP JSR-166 Expert Group and released to the
3 < * public domain. Use, modify, and redistribute this code in any way
4 < * without acknowledgement. Other contributors include Andrew Wright,
5 < * Jeffrey Hayes, Pat Fischer, Mike Judd.
2 > * Written by Doug Lea with assistance from members of JCP JSR-166
3 > * Expert Group and released to the public domain, as explained at
4 > * http://creativecommons.org/licenses/publicdomain
5 > * Other contributors include Andrew Wright, Jeffrey Hayes,
6 > * Pat Fisher, Mike Judd.
7   */
8  
9  
# Line 86 | 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 126 | 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 149 | 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