From 8f6ef49683dece62d35de2522b210abee9154d19 Mon Sep 17 00:00:00 2001 From: Rodney Waldhoff Date: Mon, 5 May 2003 23:25:22 +0000 Subject: [PATCH] * clean up unused local variables * scrub imports git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131037 13f79535-47bb-0310-9956-ffa450edef68 --- .../collections/decorators/AbstractListDecorator.java | 7 ++----- .../decorators/AbstractListIteratorDecorator.java | 9 ++------- .../commons/collections/decorators/FixedSizeList.java | 7 ++----- .../collections/decorators/SynchronizedList.java | 7 ++----- .../collections/decorators/TypedCollection.java | 5 ++--- .../collections/decorators/UnmodifiableCollection.java | 5 ++--- .../collections/decorators/UnmodifiableList.java | 6 ++---- .../org/apache/commons/collections/TestListUtils.java | 10 +++++----- .../collections/primitives/TestArrayByteList.java | 10 +++++----- .../collections/primitives/TestArrayCharList.java | 10 +++++----- .../collections/primitives/TestArrayDoubleList.java | 10 +++++----- .../collections/primitives/TestArrayFloatList.java | 10 +++++----- .../collections/primitives/TestArrayIntList.java | 10 +++++----- .../collections/primitives/TestArrayLongList.java | 10 +++++----- .../collections/primitives/TestArrayShortList.java | 10 +++++----- .../primitives/TestArrayUnsignedByteList.java | 10 +++++----- .../primitives/TestArrayUnsignedIntList.java | 10 +++++----- .../primitives/TestArrayUnsignedShortList.java | 10 +++++----- .../collections/primitives/TestFloatArrayList.java | 6 +++--- .../collections/primitives/TestIntArrayList.java | 6 +++--- .../collections/primitives/TestLongArrayList.java | 6 +++--- .../collections/primitives/TestShortArrayList.java | 6 +++--- .../primitives/TestUnsignedByteArrayList.java | 6 +++--- .../primitives/TestUnsignedIntArrayList.java | 6 +++--- .../primitives/TestUnsignedShortArrayList.java | 6 +++--- 25 files changed, 90 insertions(+), 108 deletions(-) diff --git a/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java b/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java index 6f231d974..8a8afa57e 100644 --- a/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java +++ b/src/java/org/apache/commons/collections/decorators/AbstractListDecorator.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractListDecorator.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractListDecorator.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -58,19 +58,16 @@ package org.apache.commons.collections.decorators; import java.util.Collection; -import java.util.Iterator; import java.util.List; import java.util.ListIterator; -import org.apache.commons.collections.Predicate; - /** * AbstractListDecorator decorates another List. *

* Methods are forwarded directly to the decorated list. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne */ diff --git a/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java b/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java index 952053182..39588b227 100644 --- a/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java +++ b/src/java/org/apache/commons/collections/decorators/AbstractListIteratorDecorator.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractListIteratorDecorator.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/AbstractListIteratorDecorator.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -57,13 +57,8 @@ */ package org.apache.commons.collections.decorators; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; import java.util.ListIterator; -import org.apache.commons.collections.Predicate; - /** * AbstractListIteratorDecorator decorates another * ListIterator. @@ -75,7 +70,7 @@ import org.apache.commons.collections.Predicate; * for some list implementations. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne */ diff --git a/src/java/org/apache/commons/collections/decorators/FixedSizeList.java b/src/java/org/apache/commons/collections/decorators/FixedSizeList.java index 85530d7ae..7200d39c9 100644 --- a/src/java/org/apache/commons/collections/decorators/FixedSizeList.java +++ b/src/java/org/apache/commons/collections/decorators/FixedSizeList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/FixedSizeList.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/FixedSizeList.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -58,12 +58,9 @@ package org.apache.commons.collections.decorators; import java.util.Collection; -import java.util.Iterator; import java.util.List; import java.util.ListIterator; -import org.apache.commons.collections.Predicate; - /** * FixedSizeList decorates another List to * fix the size. @@ -72,7 +69,7 @@ import org.apache.commons.collections.Predicate; * The set method is allowed (as it doesn't change the list size). * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne * @author Paul Jack diff --git a/src/java/org/apache/commons/collections/decorators/SynchronizedList.java b/src/java/org/apache/commons/collections/decorators/SynchronizedList.java index f01b20e68..ae768a71e 100644 --- a/src/java/org/apache/commons/collections/decorators/SynchronizedList.java +++ b/src/java/org/apache/commons/collections/decorators/SynchronizedList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/SynchronizedList.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/SynchronizedList.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -58,19 +58,16 @@ package org.apache.commons.collections.decorators; import java.util.Collection; -import java.util.Iterator; import java.util.List; import java.util.ListIterator; -import org.apache.commons.collections.Predicate; - /** * SynchronizedList decorates another List. *

* Methods are synchronized, then forwarded to the decorated list. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne */ diff --git a/src/java/org/apache/commons/collections/decorators/TypedCollection.java b/src/java/org/apache/commons/collections/decorators/TypedCollection.java index 59446df9a..10d8591f8 100644 --- a/src/java/org/apache/commons/collections/decorators/TypedCollection.java +++ b/src/java/org/apache/commons/collections/decorators/TypedCollection.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/TypedCollection.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/TypedCollection.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -58,7 +58,6 @@ package org.apache.commons.collections.decorators; import java.util.Collection; -import java.util.Iterator; import org.apache.commons.collections.Predicate; @@ -71,7 +70,7 @@ import org.apache.commons.collections.Predicate; * collection, an IllegalArgumentException is thrown. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne * @author Matthew Hawthorne diff --git a/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java b/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java index e432ab21c..1e829163c 100644 --- a/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java +++ b/src/java/org/apache/commons/collections/decorators/UnmodifiableCollection.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableCollection.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableCollection.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -61,7 +61,6 @@ import java.util.Collection; import java.util.Iterator; import org.apache.commons.collections.IteratorUtils; -import org.apache.commons.collections.Predicate; /** * PredicatedCollection decorates another Collection @@ -71,7 +70,7 @@ import org.apache.commons.collections.Predicate; * is thrown. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne */ diff --git a/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java b/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java index 2c5d80dc8..b38a87a3f 100644 --- a/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java +++ b/src/java/org/apache/commons/collections/decorators/UnmodifiableList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableList.java,v 1.1 2003/04/29 18:43:47 scolebourne Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/decorators/Attic/UnmodifiableList.java,v 1.2 2003/05/05 23:25:22 rwaldhoff Exp $ * ==================================================================== * * The Apache Software License, Version 1.1 @@ -58,19 +58,17 @@ package org.apache.commons.collections.decorators; import java.util.Collection; -import java.util.Iterator; import java.util.List; import java.util.ListIterator; import org.apache.commons.collections.IteratorUtils; -import org.apache.commons.collections.Predicate; /** * UnmodifiableList decorates another List to * ensure it can't be altered. * * @since Commons Collections 3.0 - * @version $Revision: 1.1 $ $Date: 2003/04/29 18:43:47 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:22 $ * * @author Stephen Colebourne */ diff --git a/src/test/org/apache/commons/collections/TestListUtils.java b/src/test/org/apache/commons/collections/TestListUtils.java index 9cfaf88b4..c0f0ec837 100644 --- a/src/test/org/apache/commons/collections/TestListUtils.java +++ b/src/test/org/apache/commons/collections/TestListUtils.java @@ -1,7 +1,7 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestListUtils.java,v 1.8 2003/04/09 23:38:26 scolebourne Exp $ - * $Revision: 1.8 $ - * $Date: 2003/04/09 23:38:26 $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestListUtils.java,v 1.9 2003/05/05 23:25:22 rwaldhoff Exp $ + * $Revision: 1.9 $ + * $Date: 2003/05/05 23:25:22 $ * * ==================================================================== * @@ -153,10 +153,10 @@ public class TestListUtils extends BulkTest { } }); - Integer I = (Integer)list.get(5); + assertNotNull((Integer)list.get(5)); assertEquals(6, list.size()); - I = (Integer)list.get(5); + assertNotNull((Integer)list.get(5)); assertEquals(6, list.size()); } diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java b/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java index 91ffb7fac..8bce6abf3 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayByteList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayByteList.java,v 1.2 2003/04/16 18:38:09 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayByteList.java,v 1.3 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.2 $ $Date: 2003/04/16 18:38:09 $ + * @version $Revision: 1.3 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff */ public class TestArrayByteList extends TestByteList { @@ -140,12 +140,12 @@ public class TestArrayByteList extends TestByteList { } public void testZeroInitialCapacityIsValid() { - ArrayByteList list = new ArrayByteList(0); + assertNotNull(new ArrayByteList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayByteList list = new ArrayByteList(-1); + new ArrayByteList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayByteList extends TestByteList { public void testCopyConstructorWithNull() { try { - ArrayByteList list = new ArrayByteList(null); + new ArrayByteList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java b/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java index 03104b3ec..108776701 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayCharList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayCharList.java,v 1.1 2003/04/16 18:32:40 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayCharList.java,v 1.2 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/16 18:32:40 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayCharList extends TestCharList { @@ -140,12 +140,12 @@ public class TestArrayCharList extends TestCharList { } public void testZeroInitialCapacityIsValid() { - ArrayCharList list = new ArrayCharList(0); + assertNotNull(new ArrayCharList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayCharList list = new ArrayCharList(-1); + new ArrayCharList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayCharList extends TestCharList { public void testCopyConstructorWithNull() { try { - ArrayCharList list = new ArrayCharList(null); + new ArrayCharList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java b/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java index 9089c9a20..f0bd89a58 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayDoubleList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayDoubleList.java,v 1.1 2003/04/15 00:11:20 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayDoubleList.java,v 1.2 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/15 00:11:20 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayDoubleList extends TestDoubleList { @@ -140,12 +140,12 @@ public class TestArrayDoubleList extends TestDoubleList { } public void testZeroInitialCapacityIsValid() { - ArrayDoubleList list = new ArrayDoubleList(0); + assertNotNull(new ArrayDoubleList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayDoubleList list = new ArrayDoubleList(-1); + new ArrayDoubleList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayDoubleList extends TestDoubleList { public void testCopyConstructorWithNull() { try { - ArrayDoubleList list = new ArrayDoubleList(null); + new ArrayDoubleList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java b/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java index 3d92af79a..44771a2d1 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayFloatList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayFloatList.java,v 1.1 2003/04/13 22:08:09 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayFloatList.java,v 1.2 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/13 22:08:09 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff */ public class TestArrayFloatList extends TestFloatList { @@ -140,12 +140,12 @@ public class TestArrayFloatList extends TestFloatList { } public void testZeroInitialCapacityIsValid() { - ArrayFloatList list = new ArrayFloatList(0); + assertNotNull(new ArrayFloatList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayFloatList list = new ArrayFloatList(-1); + new ArrayFloatList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayFloatList extends TestFloatList { public void testCopyConstructorWithNull() { try { - ArrayFloatList list = new ArrayFloatList(null); + new ArrayFloatList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java b/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java index 39090a58b..777545a32 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayIntList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayIntList.java,v 1.11 2003/03/05 19:10:50 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayIntList.java,v 1.12 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.11 $ $Date: 2003/03/05 19:10:50 $ + * @version $Revision: 1.12 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayIntList extends TestIntList { @@ -140,12 +140,12 @@ public class TestArrayIntList extends TestIntList { } public void testZeroInitialCapacityIsValid() { - ArrayIntList list = new ArrayIntList(0); + assertNotNull(new ArrayIntList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayIntList list = new ArrayIntList(-1); + new ArrayIntList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayIntList extends TestIntList { public void testCopyConstructorWithNull() { try { - ArrayIntList list = new ArrayIntList(null); + new ArrayIntList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java b/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java index 03f3aa217..5401e7593 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayLongList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayLongList.java,v 1.1 2003/04/08 18:24:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayLongList.java,v 1.2 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/08 18:24:34 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff */ public class TestArrayLongList extends TestLongList { @@ -140,12 +140,12 @@ public class TestArrayLongList extends TestLongList { } public void testZeroInitialCapacityIsValid() { - ArrayLongList list = new ArrayLongList(0); + assertNotNull(new ArrayLongList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayLongList list = new ArrayLongList(-1); + new ArrayLongList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayLongList extends TestLongList { public void testCopyConstructorWithNull() { try { - ArrayLongList list = new ArrayLongList(null); + new ArrayLongList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java b/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java index 3a699686c..79a24e859 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayShortList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayShortList.java,v 1.1 2003/04/11 00:55:36 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayShortList.java,v 1.2 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/11 00:55:36 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayShortList extends TestShortList { @@ -140,12 +140,12 @@ public class TestArrayShortList extends TestShortList { } public void testZeroInitialCapacityIsValid() { - ArrayShortList list = new ArrayShortList(0); + assertNotNull(new ArrayShortList(0)); } public void testNegativeInitialCapacityIsInvalid() { try { - ArrayShortList list = new ArrayShortList(-1); + new ArrayShortList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -164,7 +164,7 @@ public class TestArrayShortList extends TestShortList { public void testCopyConstructorWithNull() { try { - ArrayShortList list = new ArrayShortList(null); + new ArrayShortList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java index ab2f4c8dd..68e04b65f 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedByteList.java,v 1.1 2003/04/11 21:50:15 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedByteList.java,v 1.2 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/11 21:50:15 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff */ public class TestArrayUnsignedByteList extends TestShortList { @@ -134,7 +134,7 @@ public class TestArrayUnsignedByteList extends TestShortList { } public void testZeroInitialCapacityIsValid() { - ArrayUnsignedByteList list = new ArrayUnsignedByteList(0); + assertNotNull(new ArrayUnsignedByteList(0)); } public void testIllegalArgumentExceptionWhenElementOutOfRange() { @@ -157,7 +157,7 @@ public class TestArrayUnsignedByteList extends TestShortList { public void testNegativeInitialCapacityIsInvalid() { try { - ArrayUnsignedByteList list = new ArrayUnsignedByteList(-1); + new ArrayUnsignedByteList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -176,7 +176,7 @@ public class TestArrayUnsignedByteList extends TestShortList { public void testCopyConstructorWithNull() { try { - ArrayUnsignedByteList list = new ArrayUnsignedByteList(null); + new ArrayUnsignedByteList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java index b5eeabbd0..77966694d 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedIntList.java,v 1.1 2003/04/09 06:44:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedIntList.java,v 1.2 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.1 $ $Date: 2003/04/09 06:44:34 $ + * @version $Revision: 1.2 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayUnsignedIntList extends TestLongList { @@ -134,7 +134,7 @@ public class TestArrayUnsignedIntList extends TestLongList { } public void testZeroInitialCapacityIsValid() { - ArrayUnsignedIntList list = new ArrayUnsignedIntList(0); + assertNotNull(new ArrayUnsignedIntList(0)); } public void testIllegalArgumentExceptionWhenElementOutOfRange() { @@ -157,7 +157,7 @@ public class TestArrayUnsignedIntList extends TestLongList { public void testNegativeInitialCapacityIsInvalid() { try { - ArrayUnsignedIntList list = new ArrayUnsignedIntList(-1); + new ArrayUnsignedIntList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -176,7 +176,7 @@ public class TestArrayUnsignedIntList extends TestLongList { public void testCopyConstructorWithNull() { try { - ArrayUnsignedIntList list = new ArrayUnsignedIntList(null); + new ArrayUnsignedIntList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java index b01c80694..7b30a0b6d 100644 --- a/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java +++ b/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedShortList.java,v 1.11 2003/03/05 19:10:50 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestArrayUnsignedShortList.java,v 1.12 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.11 $ $Date: 2003/03/05 19:10:50 $ + * @version $Revision: 1.12 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff */ public class TestArrayUnsignedShortList extends TestIntList { @@ -126,7 +126,7 @@ public class TestArrayUnsignedShortList extends TestIntList { } public void testZeroInitialCapacityIsValid() { - ArrayUnsignedShortList list = new ArrayUnsignedShortList(0); + assertNotNull(new ArrayUnsignedShortList(0)); } public void testIllegalArgumentExceptionWhenElementOutOfRange() { @@ -149,7 +149,7 @@ public class TestArrayUnsignedShortList extends TestIntList { public void testNegativeInitialCapacityIsInvalid() { try { - ArrayUnsignedShortList list = new ArrayUnsignedShortList(-1); + new ArrayUnsignedShortList(-1); fail("Expected IllegalArgumentException"); } catch(IllegalArgumentException e) { // expected @@ -168,7 +168,7 @@ public class TestArrayUnsignedShortList extends TestIntList { public void testCopyConstructorWithNull() { try { - ArrayUnsignedShortList list = new ArrayUnsignedShortList(null); + new ArrayUnsignedShortList(null); fail("Expected NullPointerException"); } catch(NullPointerException e) { // expected diff --git a/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java b/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java index fcfbca6c1..d5ef8edd0 100644 --- a/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestFloatArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestFloatArrayList.java,v 1.6 2003/04/13 23:05:35 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestFloatArrayList.java,v 1.7 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -65,7 +65,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.TestList; /** - * @version $Revision: 1.6 $ $Date: 2003/04/13 23:05:35 $ + * @version $Revision: 1.7 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff * @deprecated since the tested type is also */ @@ -97,7 +97,7 @@ public class TestFloatArrayList extends TestList { //------------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - FloatArrayList list = new FloatArrayList(0); + assertNotNull(new FloatArrayList(0)); } public void testAddGet() { diff --git a/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java b/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java index b046a54ca..6945f0a4c 100644 --- a/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestIntArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntArrayList.java,v 1.7 2003/04/09 06:44:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntArrayList.java,v 1.8 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/09 06:44:34 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff * @deprecated as the tested classes are deprecated also */ @@ -89,7 +89,7 @@ public class TestIntArrayList extends TestAbstractIntArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - IntArrayList list = new IntArrayList(0); + assertNotNull(new IntArrayList(0)); } } diff --git a/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java b/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java index 2912e209e..b736e9700 100644 --- a/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestLongArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestLongArrayList.java,v 1.7 2003/04/09 06:44:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestLongArrayList.java,v 1.8 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/09 06:44:34 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff * @deprecated as the tested classes are deprecated also */ @@ -89,7 +89,7 @@ public class TestLongArrayList extends TestAbstractLongArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - LongArrayList list = new LongArrayList(0); + assertNotNull(new LongArrayList(0)); } } diff --git a/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java b/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java index 31a48b7bd..82c5545d0 100644 --- a/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestShortArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortArrayList.java,v 1.7 2003/04/11 22:01:25 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortArrayList.java,v 1.8 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/11 22:01:25 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff * @deprecated since the tested class is also. */ @@ -89,7 +89,7 @@ public class TestShortArrayList extends TestAbstractShortArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - ShortArrayList list = new ShortArrayList(0); + assertNotNull(new ShortArrayList(0)); } } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java index 370417eed..7150f481c 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedByteArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedByteArrayList.java,v 1.7 2003/04/11 22:01:25 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedByteArrayList.java,v 1.8 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/11 22:01:25 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff * @deprecated since the tested class is also. */ @@ -89,7 +89,7 @@ public class TestUnsignedByteArrayList extends TestAbstractShortArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - UnsignedByteArrayList list = new UnsignedByteArrayList(0); + assertNotNull(new UnsignedByteArrayList(0)); } } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java index adff3ba15..43bef4c03 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedIntArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedIntArrayList.java,v 1.7 2003/04/09 06:44:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedIntArrayList.java,v 1.8 2003/05/05 23:25:19 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/09 06:44:34 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:19 $ * @author Rodney Waldhoff * @deprecated as the tested classes are deprecated also */ @@ -89,7 +89,7 @@ public class TestUnsignedIntArrayList extends TestAbstractLongArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - UnsignedIntArrayList list = new UnsignedIntArrayList(0); + assertNotNull(new UnsignedIntArrayList(0)); } } diff --git a/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java b/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java index 694f01a5f..cb1fadac0 100644 --- a/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java +++ b/src/test/org/apache/commons/collections/primitives/TestUnsignedShortArrayList.java @@ -1,5 +1,5 @@ /* - * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedShortArrayList.java,v 1.7 2003/04/09 06:44:34 rwaldhoff Exp $ + * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestUnsignedShortArrayList.java,v 1.8 2003/05/05 23:25:21 rwaldhoff Exp $ * ==================================================================== * The Apache Software License, Version 1.1 * @@ -63,7 +63,7 @@ import junit.framework.TestSuite; import org.apache.commons.collections.BulkTest; /** - * @version $Revision: 1.7 $ $Date: 2003/04/09 06:44:34 $ + * @version $Revision: 1.8 $ $Date: 2003/05/05 23:25:21 $ * @author Rodney Waldhoff * @deprecated as the tested classes are deprecated also */ @@ -89,7 +89,7 @@ public class TestUnsignedShortArrayList extends TestAbstractIntArrayList { //---------------------------------------------------------------- Tests public void testZeroInitialCapacityIsValid() { - UnsignedShortArrayList list = new UnsignedShortArrayList(0); + assertNotNull(new UnsignedShortArrayList(0)); } }