--- jsr166/src/test/tck/LinkedListTest.java 2005/09/14 23:50:31 1.9 +++ jsr166/src/test/tck/LinkedListTest.java 2009/11/02 20:28:31 1.10 @@ -2,8 +2,8 @@ * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/licenses/publicdomain - * Other contributors include Andrew Wright, Jeffrey Hayes, - * Pat Fisher, Mike Judd. + * Other contributors include Andrew Wright, Jeffrey Hayes, + * Pat Fisher, Mike Judd. */ import junit.framework.*; @@ -12,7 +12,7 @@ import java.util.concurrent.*; public class LinkedListTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run (suite()); + junit.textui.TestRunner.run (suite()); } public static Test suite() { @@ -32,7 +32,7 @@ public class LinkedListTest extends JSR1 assertEquals(n, q.size()); return q; } - + /** * new queue is empty */ @@ -103,13 +103,13 @@ public class LinkedListTest extends JSR1 try { LinkedList q = new LinkedList(); q.offer(null); - } catch (NullPointerException ie) { + } catch (NullPointerException ie) { unexpectedException(); - } + } } /** - * Offer succeeds + * Offer succeeds */ public void testOffer() { LinkedList q = new LinkedList(); @@ -239,7 +239,7 @@ public class LinkedListTest extends JSR1 q.remove(); shouldThrow(); } catch (NoSuchElementException success){ - } + } } /** @@ -256,7 +256,7 @@ public class LinkedListTest extends JSR1 } assertTrue(q.isEmpty()); } - + /** * contains(x) reports true when elements added but not yet removed */ @@ -378,7 +378,7 @@ public class LinkedListTest extends JSR1 shouldThrow(); } catch(ArrayStoreException success){} } - + /** * iterator iterates through all elements */ @@ -490,7 +490,7 @@ public class LinkedListTest extends JSR1 for (int i = 0; i < SIZE; ++i) { assertTrue(s.indexOf(String.valueOf(i)) >= 0); } - } + } /** * peek returns element inserted with addFirst @@ -499,7 +499,7 @@ public class LinkedListTest extends JSR1 LinkedList q = populatedQueue(3); q.addFirst(four); assertEquals(four,q.peek()); - } + } /** * peekFirst returns element inserted with push @@ -509,7 +509,7 @@ public class LinkedListTest extends JSR1 q.pollLast(); q.push(four); assertEquals(four,q.peekFirst()); - } + } /** * pop removes next element, or throws NSEE if empty @@ -523,11 +523,11 @@ public class LinkedListTest extends JSR1 q.pop(); shouldThrow(); } catch (NoSuchElementException success){ - } + } } /** - * OfferFirst succeeds + * OfferFirst succeeds */ public void testOfferFirst() { LinkedList q = new LinkedList(); @@ -536,7 +536,7 @@ public class LinkedListTest extends JSR1 } /** - * OfferLast succeeds + * OfferLast succeeds */ public void testOfferLast() { LinkedList q = new LinkedList();