--- jsr166/src/test/tck/AbstractQueueTest.java 2010/08/25 00:07:02 1.4 +++ jsr166/src/test/tck/AbstractQueueTest.java 2014/12/31 19:05:42 1.10 @@ -1,17 +1,18 @@ /* * 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 + * http://creativecommons.org/publicdomain/zero/1.0/ * Other contributors include Andrew Wright, Jeffrey Hayes, * Pat Fisher, Mike Judd. */ +import java.util.AbstractQueue; +import java.util.Arrays; +import java.util.Iterator; +import java.util.NoSuchElementException; -import junit.framework.*; -import java.util.*; -import java.util.concurrent.*; -import java.util.concurrent.locks.*; -import java.io.*; +import junit.framework.Test; +import junit.framework.TestSuite; public class AbstractQueueTest extends JSR166TestCase { public static void main(String[] args) { @@ -92,7 +93,6 @@ public class AbstractQueueTest extends J } catch (NoSuchElementException success) {} } - /** * element returns normally if peek succeeds */ @@ -113,7 +113,7 @@ public class AbstractQueueTest extends J } /** - * addAll(null) throws NPE + * addAll(null) throws NPE */ public void testAddAll1() { try { @@ -134,9 +134,8 @@ public class AbstractQueueTest extends J } catch (IllegalArgumentException success) {} } - /** - * addAll of a collection with null elements throws NPE + * addAll of a collection with null elements throws NPE */ public void testAddAll2() { try { @@ -146,6 +145,7 @@ public class AbstractQueueTest extends J shouldThrow(); } catch (NullPointerException success) {} } + /** * addAll of a collection with any null elements throws NPE after * possibly adding some elements @@ -160,6 +160,7 @@ public class AbstractQueueTest extends J shouldThrow(); } catch (NullPointerException success) {} } + /** * addAll throws ISE if an add fails */