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 |
|
import junit.framework.*; |
212 |
|
} |
213 |
|
|
214 |
|
/** |
215 |
< |
* |
215 |
> |
* element returns next element, or throws NSEE if empty |
216 |
|
*/ |
217 |
|
public void testElement() { |
218 |
|
LinkedList q = populatedQueue(SIZE); |
228 |
|
} |
229 |
|
|
230 |
|
/** |
231 |
< |
* element returns next element, or throws NSEE if empty |
231 |
> |
* remove removes next element, or throws NSEE if empty |
232 |
|
*/ |
233 |
|
public void testRemove() { |
234 |
|
LinkedList q = populatedQueue(SIZE); |
317 |
|
} |
318 |
|
|
319 |
|
/** |
320 |
< |
* removeAll(c) removes only those elements of c and reports true if changed |
320 |
> |
* removeAll(c) removes only those elements of c and reports true if changed |
321 |
|
*/ |
322 |
|
public void testRemoveAll() { |
323 |
|
for (int i = 1; i < SIZE; ++i) { |