Rename TestObject to AbstractTestObject

Rename TestCollection to AbstractTestCollection
Rename TestList to AbstractTestList
Javadoc and tidy


git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131219 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-10-02 22:14:35 +00:00
parent 03fe3cdb91
commit a3155911c2
57 changed files with 541 additions and 521 deletions

View File

@ -1,13 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCollection.java,v 1.15 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.15 $
* $Date: 2003/08/31 17:28:43 $
*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/AbstractTestCollection.java,v 1.1 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2001 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -36,7 +33,7 @@
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -73,45 +70,45 @@ import java.util.Map;
import java.util.NoSuchElementException;
/**
* Tests base {@link java.util.Collection} methods and contracts.
* Abstract test class for the {@link java.util.Collection} methods and contracts.
* <p>
* You should create a concrete subclass of this class to test any custom
* {@link Collection} implementation. At minimum, you'll have to
* implement the {@link #makeCollection()} method. You might want to
* override some of the additional protected methods as well:
* <p>
* <B>Element Population Methods</B>
* <b>Element Population Methods</b>
* <p>
* Override these if your collection restricts what kind of elements are
* allowed (for instance, if <Code>null</Code> is not permitted):
* <UL>
* <Li>{@link #getFullElements()}
* <Li>{@link #getOtherElements()}
* </UL>
* allowed (for instance, if <code>null</code> is not permitted):
* <ul>
* <li>{@link #getFullElements()}
* <li>{@link #getOtherElements()}
* </ul>
* <p>
* <B>Supported Operation Methods</B>
* <b>Supported Operation Methods</b>
* <p>
* Override these if your collection doesn't support certain operations:
* <UL>
* <LI>{@link #isAddSupported()}
* <LI>{@link #isRemoveSupported()}
* <ul>
* <li>{@link #isAddSupported()}
* <li>{@link #isRemoveSupported()}
* <li>{@link #areEqualElementsDistinguishable()}
* <LI>{@link #isNullSupported()}
* <LI>{@link #isFailFastSupported()}
* </UL>
* <li>{@link #isNullSupported()}
* <li>{@link #isFailFastSupported()}
* </ul>
* <p>
* <B>Fixture Methods</B>
* <b>Fixture Methods</b>
* <p>
* Fixtures are used to verify that the the operation results in correct state
* for the collection. Basically, the operation is performed against your
* collection implementation, and an identical operation is performed against a
* <I>confirmed</I> collection implementation. A confirmed collection
* implementation is something like <Code>java.util.ArrayList</Code>, which is
* <i>confirmed</i> collection implementation. A confirmed collection
* implementation is something like <code>java.util.ArrayList</code>, which is
* known to conform exactly to its collection interface's contract. After the
* operation takes place on both your collection implementation and the
* confirmed collection implementation, the two collections are compared to see
* if their state is identical. The comparison is usually much more involved
* than a simple <Code>equals</Code> test. This verification is used to ensure
* than a simple <code>equals</code> test. This verification is used to ensure
* proper modifications are made along with ensuring that the collection does
* not change when read-only modifications are made.
* <p>
@ -130,10 +127,10 @@ import java.util.NoSuchElementException;
* <p>
* If you're extending this class directly, you will have to provide
* implementations for the following:
* <UL>
* <LI>{@link #makeConfirmedCollection()}
* <LI>{@link #makeConfirmedFullCollection()}
* </UL>
* <ul>
* <li>{@link #makeConfirmedCollection()}
* <li>{@link #makeConfirmedFullCollection()}
* </ul>
* <p>
* Those methods should provide a confirmed collection implementation
* that's compatible with your collection implementation.
@ -143,20 +140,21 @@ import java.util.NoSuchElementException;
* above methods, because those three classes already override the methods
* to provide standard JDK confirmed collections.<P>
* <p>
* <B>Other notes</B>
* <b>Other notes</b>
* <p>
* If your {@link Collection} fails one of these tests by design,
* you may still use this base set of cases. Simply override the
* test case (method) your {@link Collection} fails.
*
* @version $Revision: 1.1 $ $Date: 2003/10/02 22:14:29 $
*
* @author Rodney Waldhoff
* @author Paul Jack
* @author <a href="mailto:mas@apache.org">Michael A. Smith</a>
* @author Michael A. Smith
* @author Neil O'Toole
* @author Stephen Colebourne
* @version $Id: TestCollection.java,v 1.15 2003/08/31 17:28:43 scolebourne Exp $
*/
public abstract class TestCollection extends TestObject {
public abstract class AbstractTestCollection extends AbstractTestObject {
//
// NOTE:
@ -188,11 +186,11 @@ public abstract class TestCollection extends TestObject {
protected Collection confirmed;
/**
* Constructor.
* JUnit constructor.
*
* @param testName the test name
* @param testName the test class name
*/
public TestCollection(String testName) {
public AbstractTestCollection(String testName) {
super(testName);
}
@ -226,7 +224,7 @@ public abstract class TestCollection extends TestObject {
/**
* Returns true if the collections produced by
* {@link #makeCollection()} and {@link #makeFullCollection()}
* support the <Code>add</Code> and <Code>addAll</Code>
* support the <code>add</code> and <code>addAll</code>
* operations.<P>
* Default implementation returns true. Override if your collection
* class does not support add or addAll.
@ -238,9 +236,9 @@ public abstract class TestCollection extends TestObject {
/**
* Returns true if the collections produced by
* {@link #makeCollection()} and {@link #makeFullCollection()}
* support the <Code>remove</Code>, <Code>removeAll</Code>,
* <Code>retainAll</Code>, <Code>clear</Code> and
* <Code>iterator().remove()</Code> methods.
* support the <code>remove</code>, <code>removeAll</code>,
* <code>retainAll</code>, <code>clear</code> and
* <code>iterator().remove()</code> methods.
* Default implementation returns true. Override if your collection
* class does not support removal operations.
*/
@ -387,7 +385,7 @@ public abstract class TestCollection extends TestObject {
* Returns a full collection to be used for testing. The collection
* returned by this method should contain every element returned by
* {@link #getFullElements()}. The default implementation, in fact,
* simply invokes <Code>addAll</Code> on an empty collection with
* simply invokes <code>addAll</code> on an empty collection with
* the results of {@link #getFullElements()}. Override this default
* if your collection doesn't support addAll.
*/
@ -598,7 +596,7 @@ public abstract class TestCollection extends TestObject {
/**
* If {@link #isAddSupported()} returns false, tests that add operations
* raise <Code>UnsupportedOperationException.
* raise <code>UnsupportedOperationException.
*/
public void testUnsupportedAdd() {
if (isAddSupported()) return;
@ -1158,7 +1156,7 @@ public abstract class TestCollection extends TestObject {
/**
* Tests <Code>toString</Code> on a collection.
* Tests <code>toString</code> on a collection.
*/
public void testCollectionToString() {
resetEmpty();

View File

@ -1,10 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestList.java,v 1.20 2003/09/20 17:00:32 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/AbstractTestList.java,v 1.1 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -73,29 +73,31 @@ import java.util.ListIterator;
import java.util.NoSuchElementException;
/**
* Tests base {@link java.util.List} methods and contracts.
* Abstract test class for {@link java.util.List} methods and contracts.
* <p>
* To use, simply extend this class, and implement
* the {@link #makeList} method.
* <p>
* If your {@link List} fails one of these tests by design,
* you may still use this base set of cases. Simply override the
* test case (method) your {@link List} fails.
* test case (method) your {@link List} fails or override one of the
* protected methods from AbstractTestCollection.
*
* @version $Revision: 1.20 $ $Date: 2003/09/20 17:00:32 $
* @version $Revision: 1.1 $ $Date: 2003/10/02 22:14:29 $
*
* @author Rodney Waldhoff
* @author Paul Jack
* @author Stephen Colebourne
* @author Neil O'Toole
*/
public abstract class TestList extends TestCollection {
public abstract class AbstractTestList extends AbstractTestCollection {
/**
* Constructor.
* @param testName
* JUnit constructor.
*
* @param testName the test class name
*/
public TestList(String testName) {
public AbstractTestList(String testName) {
super(testName);
}
@ -103,7 +105,7 @@ public abstract class TestList extends TestCollection {
/**
* Returns true if the collections produced by
* {@link #makeCollection()} and {@link #makeFullCollection()}
* support the <code>set</code> operation.<p>
* support the <code>set operation.<p>
* Default implementation returns true. Override if your collection
* class does not support set.
*/
@ -125,8 +127,7 @@ public abstract class TestList extends TestCollection {
assertEquals("List should equal confirmed", list1, list2);
assertEquals("Confirmed should equal list", list2, list1);
assertEquals("Hash codes should be equal",
list1.hashCode(), list2.hashCode());
assertEquals("Hash codes should be equal", list1.hashCode(), list2.hashCode());
int i = 0;
Iterator iterator1 = list1.iterator();
@ -147,7 +148,7 @@ public abstract class TestList extends TestCollection {
//-----------------------------------------------------------------------
/**
* Returns an empty {@link ArrayList}.
* Returns an empty {@link ArrayList}.
*/
protected Collection makeConfirmedCollection() {
ArrayList list = new ArrayList();
@ -155,7 +156,7 @@ public abstract class TestList extends TestCollection {
}
/**
* Returns a full {@link ArrayList}.
* Returns a full {@link ArrayList}.
*/
protected Collection makeConfirmedFullCollection() {
ArrayList list = new ArrayList();
@ -164,16 +165,16 @@ public abstract class TestList extends TestCollection {
}
/**
* Return a new, empty {@link List} to be used for testing.
* Return a new, empty {@link List} to be used for testing.
*
* @return an empty list for testing.
* @return an empty list for testing.
*/
protected abstract List makeEmptyList();
/**
* Return a new, full {@link List} to be used for testing.
* Return a new, full {@link List} to be used for testing.
*
* @return a full list for testing
* @return a full list for testing
*/
protected List makeFullList() {
// only works if list supports optional "addAll(Collection)"
@ -183,40 +184,40 @@ public abstract class TestList extends TestCollection {
}
/**
* Returns {@link makeEmptyList()}.
* Returns {@link makeEmptyList()}.
*
* @return an empty list to be used for testing
* @return an empty list to be used for testing
*/
final protected Collection makeCollection() {
protected final Collection makeCollection() {
return makeEmptyList();
}
/**
* Returns {@link makeFullList()}.
* Returns {@link makeFullList()}.
*
* @return a full list to be used for testing
* @return a full list to be used for testing
*/
final protected Collection makeFullCollection() {
protected final Collection makeFullCollection() {
return makeFullList();
}
//-----------------------------------------------------------------------
/**
* Returns the {@link collection} field cast to a {@link List}.
* Returns the {@link collection} field cast to a {@link List}.
*
* @return the collection field as a List
* @return the collection field as a List
*/
protected List getList() {
return (List)collection;
}
return (List) collection;
}
/**
* Returns the {@link confirmed} field cast to a {@link List}.
* Returns the {@link confirmed} field cast to a {@link List}.
*
* @return the confirmed field as a List
* @return the confirmed field as a List
*/
protected List getConfirmedList() {
return (List)confirmed;
return (List) confirmed;
}
//-----------------------------------------------------------------------
@ -225,7 +226,9 @@ public abstract class TestList extends TestCollection {
* empty list.
*/
public void testListAddByIndexBoundsChecking() {
if (!isAddSupported()) return;
if (!isAddSupported()) {
return;
}
List list;
Object element = getOtherElements()[0];
@ -233,9 +236,8 @@ public abstract class TestList extends TestCollection {
try {
list = makeEmptyList();
list.add(Integer.MIN_VALUE, element);
fail("List.add should throw IndexOutOfBoundsException " +
"[Integer.MIN_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.add should throw IndexOutOfBoundsException [Integer.MIN_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
@ -243,7 +245,7 @@ public abstract class TestList extends TestCollection {
list = makeEmptyList();
list.add(-1, element);
fail("List.add should throw IndexOutOfBoundsException [-1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
@ -251,27 +253,27 @@ public abstract class TestList extends TestCollection {
list = makeEmptyList();
list.add(1, element);
fail("List.add should throw IndexOutOfBoundsException [1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list = makeEmptyList();
list.add(Integer.MAX_VALUE, element);
fail("List.add should throw IndexOutOfBoundsException " +
"[Integer.MAX_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.add should throw IndexOutOfBoundsException [Integer.MAX_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
/**
* Tests bounds checking for {@link List#add(int, Object)} on a
* full list.
*/
public void testListAddByIndexBoundsChecking2() {
if (!isAddSupported()) return;
if (!isAddSupported()) {
return;
}
List list;
Object element = getOtherElements()[0];
@ -279,9 +281,8 @@ public abstract class TestList extends TestCollection {
try {
list = makeFullList();
list.add(Integer.MIN_VALUE, element);
fail("List.add should throw IndexOutOfBoundsException " +
"[Integer.MIN_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.add should throw IndexOutOfBoundsException [Integer.MIN_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
@ -289,7 +290,7 @@ public abstract class TestList extends TestCollection {
list = makeFullList();
list.add(-1, element);
fail("List.add should throw IndexOutOfBoundsException [-1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
@ -297,81 +298,80 @@ public abstract class TestList extends TestCollection {
list = makeFullList();
list.add(list.size() + 1, element);
fail("List.add should throw IndexOutOfBoundsException [size + 1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list = makeFullList();
list.add(Integer.MAX_VALUE, element);
fail("List.add should throw IndexOutOfBoundsException " +
"[Integer.MAX_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.add should throw IndexOutOfBoundsException [Integer.MAX_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
/**
* Tests {@link List#add(int,Object)}.
*/
public void testListAddByIndex() {
if (!isAddSupported()) return;
if (!isAddSupported()) {
return;
}
Object element = getOtherElements()[0];
int max = getFullElements().length;
for (int i = 0; i <= max; i++) {
resetFull();
((List)collection).add(i, element);
((List)confirmed).add(i, element);
((List) collection).add(i, element);
((List) confirmed).add(i, element);
verify();
}
}
/**
* Tests {@link List#equals(Object)}.
*/
public void testListEquals() {
resetEmpty();
List list = getList();
assertTrue("Empty lists should be equal", list.equals(confirmed));
assertEquals("Empty lists should be equal", true, list.equals(confirmed));
verify();
assertTrue("Empty list should equal self", list.equals(list));
assertEquals("Empty list should equal self", true, list.equals(list));
verify();
List list2 = Arrays.asList(getFullElements());
assertTrue("Empty list shouldn't equal full", !list.equals(list2));
assertEquals("Empty list shouldn't equal full", false, list.equals(list2));
verify();
list2 = Arrays.asList(getOtherElements());
assertTrue("Empty list shouldn't equal other", !list.equals(list2));
assertEquals("Empty list shouldn't equal other", false, list.equals(list2));
verify();
resetFull();
list = getList();
assertTrue("Full lists should be equal", list.equals(confirmed));
assertEquals("Full lists should be equal", true, list.equals(confirmed));
verify();
assertTrue("Full list should equal self", list.equals(list));
assertEquals("Full list should equal self", true, list.equals(list));
verify();
list2 = makeEmptyList();
assertTrue("Full list shouldn't equal empty", !list.equals(list2));
assertEquals("Full list shouldn't equal empty", false, list.equals(list2));
verify();
list2 = Arrays.asList(getOtherElements());
assertTrue("Full list shouldn't equal other", !list.equals(list2));
assertEquals("Full list shouldn't equal other", false, list.equals(list2));
verify();
list2 = Arrays.asList(getFullElements());
Collections.reverse(list2);
assertTrue("Full list shouldn't equal full list with same elements" +
" but different order", !list.equals(list2));
assertEquals(
"Full list shouldn't equal full list with same elements but different order",
false, list.equals(list2));
verify();
assertTrue("List shouldn't equal String", !list.equals(""));
assertEquals("List shouldn't equal String", false, list.equals(""));
verify();
final List listForC = Arrays.asList(getFullElements());
@ -385,12 +385,10 @@ public abstract class TestList extends TestCollection {
}
};
assertTrue("List shouldn't equal nonlist with same elements " +
" in same order", !list.equals(c));
assertEquals("List shouldn't equal nonlist with same elements in same order", false, list.equals(c));
verify();
}
/**
* Tests {@link List#hashCode()}.
*/
@ -408,7 +406,6 @@ public abstract class TestList extends TestCollection {
verify();
}
/**
* Tests {@link List#get(int)}.
*/
@ -417,13 +414,11 @@ public abstract class TestList extends TestCollection {
List list = getList();
Object[] elements = getFullElements();
for (int i = 0; i < elements.length; i++) {
assertEquals("List should contain correct elements",
elements[i], list.get(i));
assertEquals("List should contain correct elements", elements[i], list.get(i));
verify();
}
}
/**
* Tests bounds checking for {@link List#get(int)} on an
* empty list.
@ -433,43 +428,40 @@ public abstract class TestList extends TestCollection {
try {
list.get(Integer.MIN_VALUE);
fail("List.get should throw IndexOutOfBoundsException " +
"[Integer.MIN_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.get should throw IndexOutOfBoundsException [Integer.MIN_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(-1);
fail("List.get should throw IndexOutOfBoundsException [-1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(0);
fail("List.get should throw IndexOutOfBoundsException [0]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(1);
fail("List.get should throw IndexOutOfBoundsException [1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(Integer.MAX_VALUE);
fail("List.get should throw IndexOutOfBoundsException " +
"[Integer.MAX_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.get should throw IndexOutOfBoundsException [Integer.MAX_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
/**
* Tests bounds checking for {@link List#get(int)} on a
* full list.
@ -479,36 +471,33 @@ public abstract class TestList extends TestCollection {
try {
list.get(Integer.MIN_VALUE);
fail("List.get should throw IndexOutOfBoundsException " +
"[Integer.MIN_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.get should throw IndexOutOfBoundsException [Integer.MIN_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(-1);
fail("List.get should throw IndexOutOfBoundsException [-1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(getFullElements().length);
fail("List.get should throw IndexOutOfBoundsException [size]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
try {
list.get(Integer.MAX_VALUE);
fail("List.get should throw IndexOutOfBoundsException " +
"[Integer.MAX_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.get should throw IndexOutOfBoundsException [Integer.MAX_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
/**
* Tests {@link List#indexOf()}.
*/
@ -520,20 +509,19 @@ public abstract class TestList extends TestCollection {
Iterator iterator = list2.iterator();
while (iterator.hasNext()) {
Object element = iterator.next();
assertEquals("indexOf should return correct result",
list1.indexOf(element), list2.indexOf(element));
assertEquals("indexOf should return correct result",
list1.indexOf(element), list2.indexOf(element));
verify();
}
Object[] other = getOtherElements();
for (int i = 0; i < other.length; i++) {
assertEquals("indexOf should return -1 for nonexistent element",
list1.indexOf(other[i]), -1);
list1.indexOf(other[i]), -1);
verify();
}
}
/**
* Tests {@link List#lastIndexOf()}.
*/
@ -558,51 +546,50 @@ public abstract class TestList extends TestCollection {
}
}
/**
* Tests bounds checking for {@link List#set(int,Object)} on an
* empty list.
*/
public void testListSetByIndexBoundsChecking() {
if (!isSetSupported()) return;
if (!isSetSupported()) {
return;
}
List list = makeEmptyList();
Object element = getOtherElements()[0];
try {
list.set(Integer.MIN_VALUE, element);
fail("List.set should throw IndexOutOfBoundsException " +
"[Integer.MIN_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.set should throw IndexOutOfBoundsException [Integer.MIN_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
try {
list.set(-1, element);
fail("List.set should throw IndexOutOfBoundsException [-1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
}
try {
list.set(0, element);
fail("List.set should throw IndexOutOfBoundsException [0]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
}
try {
list.set(1, element);
fail("List.set should throw IndexOutOfBoundsException [1]");
} catch(IndexOutOfBoundsException e) {
} catch (IndexOutOfBoundsException e) {
// expected
}
}
try {
list.set(Integer.MAX_VALUE, element);
fail("List.set should throw IndexOutOfBoundsException " +
"[Integer.MAX_VALUE]");
} catch(IndexOutOfBoundsException e) {
fail("List.set should throw IndexOutOfBoundsException [Integer.MAX_VALUE]");
} catch (IndexOutOfBoundsException e) {
// expected
}
}
@ -1013,8 +1000,8 @@ public abstract class TestList extends TestCollection {
//-----------------------------------------------------------------------
/**
* Returns a {@link BulkTest} for testing {@link List#subList(int,int)}.
* The returned bulk test will run through every <Code>TestList</Code>
* method, <I>including</I> another <Code>bulkTestSubList</Code>.
* The returned bulk test will run through every <code>TestList</code>
* method, <i>including</i> another <code>bulkTestSubList</code>.
* Sublists are tested until the size of the sublist is less than 10.
* Each sublist is 6 elements smaller than its parent list.
* (By default this means that two rounds of sublists will be tested).
@ -1027,12 +1014,12 @@ public abstract class TestList extends TestCollection {
}
static class BulkTestSubList extends TestList {
static class BulkTestSubList extends AbstractTestList {
private TestList outer;
private AbstractTestList outer;
BulkTestSubList(TestList outer) {
BulkTestSubList(AbstractTestList outer) {
super("");
this.outer = outer;
}

View File

@ -1,10 +1,10 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestObject.java,v 1.22 2003/08/31 17:28:43 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/AbstractTestObject.java,v 1.1 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2003 The Apache Software Foundation. All rights
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -33,7 +33,7 @@
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Group.
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@ -55,7 +55,6 @@
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.io.ByteArrayInputStream;
@ -71,7 +70,7 @@ import java.io.OutputStream;
import java.io.Serializable;
/**
* Tests base {@link java.lang.Object} methods and contracts.
* Abstract test class for {@link java.lang.Object} methods and contracts.
* <p>
* To use, simply extend this class, and implement
* the {@link #makeObject()} method.
@ -80,70 +79,102 @@ import java.io.Serializable;
* you may still use this base set of cases. Simply override the
* test case (method) your {@link Object} fails.
*
* @author Rodney Waldhoff
* @author Anonymous
* @version $Revision: 1.1 $ $Date: 2003/10/02 22:14:29 $
*
* @version $Revision: 1.22 $ $Date: 2003/08/31 17:28:43 $
* @author Rodney Waldhoff
* @author Stephen Colebourne
* @author Anonymous
*/
public abstract class TestObject extends BulkTest {
public abstract class AbstractTestObject extends BulkTest {
// constructor
// ------------------------------------------------------------------------
/** Current major release for Collections */
public static final int COLLECTIONS_MAJOR_VERSION = 3;
public TestObject(String testName) {
/**
* JUnit constructor.
*
* @param testName the test class name
*/
public AbstractTestObject(String testName) {
super(testName);
}
// abstract
// ------------------------------------------------------------------------
//-----------------------------------------------------------------------
/**
* Return a new, empty {@link Object} to used for testing.
* Implement this method to return the object to test.
*
* @return the object to test
*/
protected abstract Object makeObject();
// tests
// ------------------------------------------------------------------------
/**
* Override this method if a subclass is testing an object
* that cannot serialize an "empty" Collection.
* (e.g. Comparators have no contents)
*
* @return true
*/
protected boolean supportsEmptyCollections() {
return true;
}
/**
* Override this method if a subclass is testing an object
* that cannot serialize a "full" Collection.
* (e.g. Comparators have no contents)
*
* @return true
*/
protected boolean supportsFullCollections() {
return true;
}
//-----------------------------------------------------------------------
public void testObjectEqualsSelf() {
Object obj = makeObject();
assertEquals("A Object should equal itself",obj,obj);
assertEquals("A Object should equal itself", obj, obj);
}
public void testEqualsNull() {
Object obj = makeObject();
assertTrue(! obj.equals(null) ); // make sure this doesn't throw NPE either
assertEquals(false, obj.equals(null)); // make sure this doesn't throw NPE either
}
public void testObjectHashCodeEqualsSelfHashCode() {
Object obj = makeObject();
assertEquals("hashCode should be repeatable",obj.hashCode(),obj.hashCode());
assertEquals("hashCode should be repeatable", obj.hashCode(), obj.hashCode());
}
public void testObjectHashCodeEqualsContract() {
Object obj1 = makeObject();
if(obj1.equals(obj1)) {
assertEquals("[1] When two objects are equal, their hashCodes should be also.",obj1.hashCode(),obj1.hashCode());
if (obj1.equals(obj1)) {
assertEquals(
"[1] When two objects are equal, their hashCodes should be also.",
obj1.hashCode(), obj1.hashCode());
}
Object obj2 = makeObject();
if(obj1.equals(obj2)) {
assertEquals("[2] When two objects are equal, their hashCodes should be also.",obj1.hashCode(),obj2.hashCode());
assertTrue("When obj1.equals(obj2) is true, then obj2.equals(obj1) should also be true", obj2.equals(obj1));
if (obj1.equals(obj2)) {
assertEquals(
"[2] When two objects are equal, their hashCodes should be also.",
obj1.hashCode(), obj2.hashCode());
assertTrue(
"When obj1.equals(obj2) is true, then obj2.equals(obj1) should also be true",
obj2.equals(obj1));
}
}
public void testSerializeDeserializeThenCompare() throws Exception {
Object obj = makeObject();
if(obj instanceof Serializable) {
if (obj instanceof Serializable) {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(buffer);
out.writeObject(obj);
out.close();
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray()));
Object dest = in.readObject();
in.close();
assertEquals("obj != deserialize(serialize(obj))",obj,dest);
assertEquals("obj != deserialize(serialize(obj))", obj, dest);
}
}
@ -152,8 +183,8 @@ public abstract class TestObject extends BulkTest {
* class can be serialized and de-serialized in memory,
* using the handy makeObject() method
*
* @exception IOException
* @exception ClassNotFoundException
* @throws IOException
* @throws ClassNotFoundException
*/
public void testSimpleSerialization() throws IOException, ClassNotFoundException {
Object o = makeObject();
@ -164,40 +195,39 @@ public abstract class TestObject extends BulkTest {
}
/**
* If the test object is serializable, confirm that
* a canonical form exists in CVS
*
* Tests serialization by comparing against a previously stored version in CVS.
* If the test object is serializable, confirm that a canonical form exists.
*/
public void testCanonicalEmptyCollectionExists() {
if(supportsEmptyCollections()) {
if (supportsEmptyCollections()) {
Object object = makeObject();
if(object instanceof Serializable) {
if (object instanceof Serializable) {
String name = getCanonicalEmptyCollectionName(object);
assertTrue("Canonical empty collection (" + name + ") is not in CVS",
new File(name).exists());
assertTrue(
"Canonical empty collection (" + name + ") is not in CVS",
new File(name).exists());
}
}
}
/**
* If the test object is serializable, confirm that
* a canonical form exists in CVS
*
* Tests serialization by comparing against a previously stored version in CVS.
* If the test object is serializable, confirm that a canonical form exists.
*/
public void testCanonicalFullCollectionExists() {
if(supportsFullCollections()) {
if (supportsFullCollections()) {
Object object = makeObject();
if(object instanceof Serializable) {
if (object instanceof Serializable) {
String name = getCanonicalFullCollectionName(object);
assertTrue("Canonical full collection (" + name + ") is not in CVS",
new File(name).exists());
assertTrue(
"Canonical full collection (" + name + ") is not in CVS",
new File(name).exists());
}
}
}
// protected
// ------------------------------------------------------------------------
// protected implementation
//-----------------------------------------------------------------------
/**
* Get the version of Collections that this object tries to
* maintain serialization compatibility with. Defaults to 1, the
@ -218,33 +248,11 @@ public abstract class TestObject extends BulkTest {
return "1";
}
/**
* Override this method if a subclass is testing a
* Collections that cannot serialize an "empty" Collection
* (e.g. Comparators have no contents)
*
* @return true
*/
protected boolean supportsEmptyCollections() {
return true;
}
/**
* Override this method if a subclass is testing a
* Collections that cannot serialize a "full" Collection
* (e.g. Comparators have no contents)
*
* @return true
*/
protected boolean supportsFullCollections() {
return true;
}
protected String getCanonicalEmptyCollectionName(Object object) {
StringBuffer retval = new StringBuffer();
retval.append("data/test/");
String colName = object.getClass().getName();
colName = colName.substring(colName.lastIndexOf(".")+1,colName.length());
colName = colName.substring(colName.lastIndexOf(".") + 1, colName.length());
retval.append(colName);
retval.append(".emptyCollection.version");
retval.append(getCompatibilityVersion());
@ -256,7 +264,7 @@ public abstract class TestObject extends BulkTest {
StringBuffer retval = new StringBuffer();
retval.append("data/test/");
String colName = object.getClass().getName();
colName = colName.substring(colName.lastIndexOf(".")+1,colName.length());
colName = colName.substring(colName.lastIndexOf(".") + 1, colName.length());
retval.append(colName);
retval.append(".fullCollection.version");
retval.append(getCompatibilityVersion());
@ -276,10 +284,9 @@ public abstract class TestObject extends BulkTest {
* @param path path to write the serialized Object
* @exception IOException
*/
protected void writeExternalFormToDisk(Serializable o, String path)
throws IOException {
protected void writeExternalFormToDisk(Serializable o, String path) throws IOException {
FileOutputStream fileStream = new FileOutputStream(path);
writeExternalFormToStream(o,fileStream);
writeExternalFormToStream(o, fileStream);
}
/**
@ -290,19 +297,12 @@ public abstract class TestObject extends BulkTest {
* @return serialized form of the Object
* @exception IOException
*/
protected byte[] writeExternalFormToBytes(Serializable o)
throws IOException {
protected byte[] writeExternalFormToBytes(Serializable o) throws IOException {
ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
writeExternalFormToStream(o,byteStream);
writeExternalFormToStream(o, byteStream);
return byteStream.toByteArray();
}
private Object readExternalFormFromStream(InputStream stream)
throws IOException, ClassNotFoundException {
ObjectInputStream oStream = new ObjectInputStream(stream);
return oStream.readObject();
}
/**
* Reads a Serialized or Externalized Object from disk.
* Useful for creating compatibility tests between
@ -313,8 +313,7 @@ public abstract class TestObject extends BulkTest {
* @exception IOException
* @exception ClassNotFoundException
*/
protected Object readExternalFormFromDisk(String path)
throws IOException, ClassNotFoundException {
protected Object readExternalFormFromDisk(String path) throws IOException, ClassNotFoundException {
FileInputStream stream = new FileInputStream(path);
return readExternalFormFromStream(stream);
}
@ -328,8 +327,7 @@ public abstract class TestObject extends BulkTest {
* @exception IOException
* @exception ClassNotFoundException
*/
protected Object readExternalFormFromBytes(byte[] b)
throws IOException, ClassNotFoundException {
protected Object readExternalFormFromBytes(byte[] b) throws IOException, ClassNotFoundException {
ByteArrayInputStream stream = new ByteArrayInputStream(b);
return readExternalFormFromStream(stream);
}
@ -338,19 +336,16 @@ public abstract class TestObject extends BulkTest {
return Boolean.getBoolean("org.apache.commons.collections:with-clover");
}
// private
// ------------------------------------------------------------------------
// private implementation
//-----------------------------------------------------------------------
private Object readExternalFormFromStream(InputStream stream) throws IOException, ClassNotFoundException {
ObjectInputStream oStream = new ObjectInputStream(stream);
return oStream.readObject();
}
private void writeExternalFormToStream(Serializable o, OutputStream stream)
throws IOException {
private void writeExternalFormToStream(Serializable o, OutputStream stream) throws IOException {
ObjectOutputStream oStream = new ObjectOutputStream(stream);
oStream.writeObject(o);
}
// attributes
// ------------------------------------------------------------------------
// current major release for Collections
public static final int COLLECTIONS_MAJOR_VERSION = 2;
}

View File

@ -1,6 +1,62 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/BulkTest.java,v 1.5 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution, if
* any, must include the following acknowledgement:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgement may appear in the software itself,
* if and wherever such third-party acknowledgements normally appear.
*
* 4. The names "The Jakarta Project", "Commons", and "Apache Software
* Foundation" must not be used to endorse or promote products derived
* from this software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* nor may "Apache" appear in their names without prior written
* permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.commons.collections;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@ -12,24 +68,23 @@ import java.util.List;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* A {@link TestCase} that can define both simple and bulk test methods.<P>
* A {@link TestCase} that can define both simple and bulk test methods.
* <p>
* A <I>simple test method</I> is the type of test traditionally
* supplied by by {@link TestCase}. To define a simple test, create a public
* no-argument method whose name starts with "test". You can specify the
* the name of simple test in the constructor of <code>BulkTest</code>;
* a subsequent call to {@link TestCase#run} will run that simple test.
* <p>
* A <I>bulk test method</I>, on the other hand, returns a new instance
* of <code>BulkTest</code>, which can itself define new simple and bulk
* test methods. By using the {@link #makeSuite} method, you can
* automatically create a hierarchal suite of tests and child bulk tests.
* <p>
* For instance, consider the following two classes:
*
* A <I>simple test method</I> is the type of test traditionally
* supplied by by {@link TestCase}. To define a simple test, create a public
* no-argument method whose name starts with "test". You can specify the
* the name of simple test in the constructor of <Code>BulkTest</Code>;
* a subsequent call to {@link TestCase#run} will run that simple test.<P>
*
* A <I>bulk test method</I>, on the other hand, returns a new instance
* of <Code>BulkTest</Code>, which can itself define new simple and bulk
* test methods. By using the {@link #makeSuite} method, you can
* automatically create a hierarchal suite of tests and child bulk tests.<P>
*
* For instance, consider the following two classes:
*
* <Pre>
* <Pre>
* public class TestSet extends BulkTest {
*
* private Set set;
@ -75,10 +130,10 @@ import junit.framework.TestSuite;
* }
* </Pre>
*
* In the above examples, <Code>TestSet</Code> defines two
* simple test methods and no bulk test methods; <Code>TestHashMap</Code>
* In the above examples, <code>TestSet</code> defines two
* simple test methods and no bulk test methods; <code>TestHashMap</code>
* defines one simple test method and two bulk test methods. When
* <Code>makeSuite(TestHashMap.class).run</Code> is executed,
* <code>makeSuite(TestHashMap.class).run</code> is executed,
* <I>five</I> simple test methods will be run, in this order:<P>
*
* <Ol>
@ -110,17 +165,17 @@ import junit.framework.TestSuite;
* </UL>
*
* A subclass can override a superclass's bulk test by
* returning <Code>null</Code> from the bulk test method. If you only
* returning <code>null</code> from the bulk test method. If you only
* want to override specific simple tests within a bulk test, use the
* {@link #ignoredSimpleTests} method.<P>
*
* Note that if you want to use the bulk test methods, you <I>must</I>
* define your <Code>suite()</Code> method to use {@link #makeSuite}.
* define your <code>suite()</code> method to use {@link #makeSuite}.
* The ordinary {@link TestSuite} constructor doesn't know how to
* interpret bulk test methods.
*
* @author Paul Jack
* @version $Id: BulkTest.java,v 1.4 2003/08/31 13:09:53 scolebourne Exp $
* @version $Id: BulkTest.java,v 1.5 2003/10/02 22:14:29 scolebourne Exp $
*/
public class BulkTest extends TestCase implements Cloneable {
@ -144,7 +199,7 @@ public class BulkTest extends TestCase implements Cloneable {
/**
* Constructs a new <Code>BulkTest</Code> instance that will run the
* Constructs a new <code>BulkTest</code> instance that will run the
* specified simple test.
*
* @param name the name of the simple test method to run
@ -156,9 +211,9 @@ public class BulkTest extends TestCase implements Cloneable {
/**
* Creates a clone of this <Code>BulkTest</Code>.<P>
* Creates a clone of this <code>BulkTest</code>.<P>
*
* @return a clone of this <Code>BulkTest</Code>
* @return a clone of this <code>BulkTest</code>
*/
public Object clone() {
try {
@ -172,12 +227,12 @@ public class BulkTest extends TestCase implements Cloneable {
/**
* Returns an array of simple test names to ignore.<P>
*
* If a simple test that's defined by this <Code>BulkTest</Code> or
* If a simple test that's defined by this <code>BulkTest</code> or
* by one of its bulk test methods has a name that's in the returned
* array, then that simple test will not be executed.<P>
*
* A simple test's name is formed by taking the class name of the
* root <Code>BulkTest</Code>, eliminating the package name, then
* root <code>BulkTest</code>, eliminating the package name, then
* appending the names of any bulk test methods that were invoked
* to get to the simple test, and then appending the simple test
* method name. The method names are delimited by periods:
@ -187,7 +242,7 @@ public class BulkTest extends TestCase implements Cloneable {
* </Pre>
*
* is the name of one of the simple tests defined in the sample classes
* described above. If the sample <Code>TestHashMap</Code> class
* described above. If the sample <code>TestHashMap</code> class
* included this method:
*
* <Pre>
@ -208,9 +263,9 @@ public class BulkTest extends TestCase implements Cloneable {
/**
* Returns the display name of this <Code>BulkTest</Code>.
* Returns the display name of this <code>BulkTest</code>.
*
* @return the display name of this <Code>BulkTest</Code>
* @return the display name of this <code>BulkTest</code>
*/
public String toString() {
return getName() + "(" + verboseName + ") ";
@ -225,7 +280,7 @@ public class BulkTest extends TestCase implements Cloneable {
* bulk tests are also examined recursively; and the results are stored
* in a hierarchal {@link TestSuite}.<P>
*
* The given class must be a subclass of <Code>BulkTest</Code> and must
* The given class must be a subclass of <code>BulkTest</code> and must
* not be abstract.<P>
*
* @param c the class to examine for simple and bulk tests
@ -250,26 +305,21 @@ public class BulkTest extends TestCase implements Cloneable {
// it easier to handle the recursion.
class BulkTestSuiteMaker {
/** The class that defines simple and bulk tests methods. */
private Class startingClass;
/** List of ignored simple test names. */
private List ignored;
/** The TestSuite we're currently populating. Can change over time. */
private TestSuite result;
/**
* The prefix for simple test methods. Used to check if a test is in
* the ignored list.
*/
private String prefix;
/**
* Constructor.
*
@ -279,7 +329,6 @@ class BulkTestSuiteMaker {
this.startingClass = startingClass;
}
/**
* Makes a hierarchal TestSuite based on the starting class.
*
@ -300,7 +349,6 @@ class BulkTestSuiteMaker {
return result;
}
/**
* Appends all the simple tests and bulk tests defined by the given
* instance's class to the current TestSuite.
@ -317,7 +365,6 @@ class BulkTestSuiteMaker {
}
}
/**
* Adds the simple test defined by the given method to the TestSuite.
*
@ -334,7 +381,6 @@ class BulkTestSuiteMaker {
result.addTest(bulk2);
}
/**
* Adds a whole new suite of tests that are defined by the result of
* the given bulk test method. In other words, the given bulk test
@ -372,7 +418,6 @@ class BulkTestSuiteMaker {
result = oldResult;
}
/**
* Returns the base name of the given class.
*
@ -401,7 +446,6 @@ class BulkTestSuiteMaker {
}
}
private static BulkTest makeTestCase(Class c, Method m) {
Constructor con = getTestCaseConstructor(c);
try {
@ -416,7 +460,6 @@ class BulkTestSuiteMaker {
}
}
private static BulkTest makeFirstTestCase(Class c) {
Method[] all = c.getMethods();
for (int i = 0; i < all.length; i++) {
@ -426,7 +469,6 @@ class BulkTestSuiteMaker {
+ " at least one test method.");
}
/**
* Returns true if the given method is a simple test method.
*/
@ -440,7 +482,6 @@ class BulkTestSuiteMaker {
return true;
}
/**
* Returns true if the given method is a bulk test method.
*/
@ -454,5 +495,4 @@ class BulkTestSuiteMaker {
return true;
}
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestArrayList.java,v 1.8 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.8 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -68,9 +68,9 @@ import junit.framework.TestSuite;
/**
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @version $Id: TestArrayList.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $
* @version $Id: TestArrayList.java,v 1.8 2003/10/02 22:14:29 scolebourne Exp $
*/
public abstract class TestArrayList extends TestList
public abstract class TestArrayList extends AbstractTestList
{
public TestArrayList(String testName)
{

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestBag.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestBag.java,v 1.7 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -77,13 +77,13 @@ import java.util.List;
* test case (method) your {@link Bag} fails.
*
* @author Chuck Burdick
* @version $Id: TestBag.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* @version $Id: TestBag.java,v 1.7 2003/10/02 22:14:29 scolebourne Exp $
*/
// TODO: this class should really extend from TestCollection, but the bag
// implementations currently do not conform to the Collection interface. Once
// those are fixed or at least a strategy is made for resolving the issue, this
// can be changed back to extend TestCollection instead.
public abstract class TestBag extends TestObject {
public abstract class TestBag extends AbstractTestObject {
public TestBag(String testName) {
super(testName);
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBinaryHeap.java,v 1.9 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.9 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBinaryHeap.java,v 1.10 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.10 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -76,9 +76,9 @@ import org.apache.commons.collections.comparators.ReverseComparator;
* Tests the BinaryHeap.
*
* @author <a href="mailto:mas@apache.org">Michael A. Smith</a>
* @version $Id: TestBinaryHeap.java,v 1.9 2003/08/31 17:28:43 scolebourne Exp $
* @version $Id: TestBinaryHeap.java,v 1.10 2003/10/02 22:14:29 scolebourne Exp $
*/
public class TestBinaryHeap extends TestCollection {
public class TestBinaryHeap extends AbstractTestCollection {
public static Test suite() {
return new TestSuite(TestBinaryHeap.class);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBoundedFifoBuffer.java,v 1.7 2003/08/31 17:28:43 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBoundedFifoBuffer.java,v 1.8 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -68,7 +68,7 @@ import junit.framework.Test;
*
* @author Paul Jack
*/
public class TestBoundedFifoBuffer extends TestCollection {
public class TestBoundedFifoBuffer extends AbstractTestCollection {
public TestBoundedFifoBuffer(String n) {
super(n);

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBufferUtils.java,v 1.6 2003/09/20 17:02:03 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/09/20 17:02:03 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestBufferUtils.java,v 1.7 2003/10/02 22:14:28 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2003/10/02 22:14:28 $
*
* ====================================================================
*
@ -109,7 +109,7 @@ public class TestBufferUtils extends BulkTest {
public BulkTest bulkTestUnmodifiableBuffer() {
return new TestCollection("") {
return new AbstractTestCollection("") {
public boolean isAddSupported() {
return false;
}

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCircularFifoBuffer.java,v 1.3 2003/08/31 17:28:43 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestCircularFifoBuffer.java,v 1.4 2003/10/02 22:14:29 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -67,11 +67,11 @@ import junit.framework.Test;
/**
* Test cases for CircularFifoBuffer.
*
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:43 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:29 $
*
* @author Stephen Colebourne
*/
public class TestCircularFifoBuffer extends TestCollection {
public class TestCircularFifoBuffer extends AbstractTestCollection {
public TestCircularFifoBuffer(String n) {
super(n);

View File

@ -1,7 +1,7 @@
/*
* $Id: TestCollectionUtils.java,v 1.22 2003/09/25 07:19:42 psteitz Exp $
* $Revision: 1.22 $
* $Date: 2003/09/25 07:19:42 $
* $Id: TestCollectionUtils.java,v 1.23 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.23 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -93,7 +93,7 @@ import org.apache.commons.collections.decorators.UnmodifiableCollection;
* @author Stephen Colebourne
* @author Phil Steitz
*
* @version $Revision: 1.22 $ $Date: 2003/09/25 07:19:42 $
* @version $Revision: 1.23 $ $Date: 2003/10/02 22:14:29 $
*/
public class TestCollectionUtils extends TestCase {
public TestCollectionUtils(String testName) {
@ -797,7 +797,7 @@ public class TestCollectionUtils extends TestCase {
}
public BulkTest bulkTestAll() {
return new TestCollection("") {
return new AbstractTestCollection("") {
public Collection makeCollection() {
return typedCollection();
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v 1.11 2003/09/27 10:07:14 scolebourne Exp $
* $Revision: 1.11 $
* $Date: 2003/09/27 10:07:14 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestCursorableLinkedList.java,v 1.12 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.12 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -74,9 +74,9 @@ import junit.framework.Test;
*
* @author Rodney Waldhoff
* @author Simon Kitching
* @version $Id: TestCursorableLinkedList.java,v 1.11 2003/09/27 10:07:14 scolebourne Exp $
* @version $Id: TestCursorableLinkedList.java,v 1.12 2003/10/02 22:14:29 scolebourne Exp $
*/
public class TestCursorableLinkedList extends TestList {
public class TestCursorableLinkedList extends AbstractTestList {
public TestCursorableLinkedList(String testName) {
super(testName);
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestLinkedList.java,v 1.3 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.3 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestLinkedList.java,v 1.4 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.4 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -79,9 +79,9 @@ import java.util.NoSuchElementException;
* test case (method) your {@link List} fails.
*
* @author <a href="mailto:rich@rd.gen.nz">Rich Dougherty</a>
* @version $Id: TestLinkedList.java,v 1.3 2003/08/31 17:28:43 scolebourne Exp $
* @version $Id: TestLinkedList.java,v 1.4 2003/10/02 22:14:29 scolebourne Exp $
*/
public abstract class TestLinkedList extends TestList {
public abstract class TestLinkedList extends AbstractTestList {
public TestLinkedList(String testName) {
super(testName);

View File

@ -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.12 2003/09/20 17:02:03 scolebourne Exp $
* $Revision: 1.12 $
* $Date: 2003/09/20 17:02:03 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestListUtils.java,v 1.13 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.13 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -124,7 +124,7 @@ public class TestListUtils extends BulkTest {
}
public BulkTest bulkTestAll() {
return new TestList("") {
return new AbstractTestList("") {
public List makeEmptyList() {
return (List)typedCollection();
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.28 2003/10/02 04:04:22 bayard Exp $
* $Revision: 1.28 $
* $Date: 2003/10/02 04:04:22 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestMap.java,v 1.29 2003/10/02 22:14:28 scolebourne Exp $
* $Revision: 1.29 $
* $Date: 2003/10/02 22:14:28 $
*
* ====================================================================
*
@ -152,9 +152,9 @@ import java.util.Set;
* @author Michael Smith
* @author Rodney Waldhoff
* @author Paul Jack
* @version $Revision: 1.28 $ $Date: 2003/10/02 04:04:22 $
* @version $Revision: 1.29 $ $Date: 2003/10/02 22:14:28 $
*/
public abstract class TestMap extends TestObject {
public abstract class TestMap extends AbstractTestObject {
// These instance variables are initialized with the reset method.
// Tests for map methods that alter the map (put, putAll, remove)
@ -1002,7 +1002,7 @@ public abstract class TestMap extends TestObject {
return new TestMapValues();
}
class TestMapValues extends TestCollection {
class TestMapValues extends AbstractTestCollection {
public TestMapValues() {
super("");
}

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestSet.java,v 1.5 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.5 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/Attic/TestSet.java,v 1.6 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -81,9 +81,9 @@ import java.util.Set;
* elements may be added; see {@link TestCollection} for more details.<P>
*
* @author Paul Jack
* @version $Id: TestSet.java,v 1.5 2003/08/31 17:28:43 scolebourne Exp $
* @version $Id: TestSet.java,v 1.6 2003/10/02 22:14:29 scolebourne Exp $
*/
public abstract class TestSet extends TestCollection {
public abstract class TestSet extends AbstractTestCollection {
/**
* Constructor.

View File

@ -1,7 +1,7 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestUnboundedFifoBuffer.java,v 1.6 2003/08/31 17:28:43 scolebourne Exp $
* $Revision: 1.6 $
* $Date: 2003/08/31 17:28:43 $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/TestUnboundedFifoBuffer.java,v 1.7 2003/10/02 22:14:29 scolebourne Exp $
* $Revision: 1.7 $
* $Date: 2003/10/02 22:14:29 $
*
* ====================================================================
*
@ -68,7 +68,7 @@ import junit.framework.Test;
/**
* Test cases for UnboundedFifoBuffer.
*/
public class TestUnboundedFifoBuffer extends TestCollection {
public class TestUnboundedFifoBuffer extends AbstractTestCollection {
public TestUnboundedFifoBuffer(String n) {
super(n);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/AbstractTestComparator.java,v 1.1 2003/10/01 22:14:48 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/comparators/AbstractTestComparator.java,v 1.2 2003/10/02 22:14:35 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -65,7 +65,7 @@ import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
/**
* Abstract test class for testing the Comparator interface.
@ -75,7 +75,7 @@ import org.apache.commons.collections.TestObject;
*
* @author Stephen Colebourne
*/
public abstract class AbstractTestComparator extends TestObject {
public abstract class AbstractTestComparator extends AbstractTestObject {
/**
* JUnit constructor.

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestBlockingBuffer.java,v 1.3 2003/09/20 17:05:36 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestBlockingBuffer.java,v 1.4 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -68,19 +68,19 @@ import junit.framework.TestSuite;
import org.apache.commons.collections.Buffer;
import org.apache.commons.collections.BufferUnderflowException;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
/**
* Extension of {@link TestObject} for exercising the {@link BlockingBuffer}
* implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.3 $
* @version $Revision: 1.4 $
*
* @author Janek Bogucki
* @author Phil Steitz
*/
public class TestBlockingBuffer extends TestObject {
public class TestBlockingBuffer extends AbstractTestObject {
public TestBlockingBuffer(String testName) {
super(testName);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestFixedSizeList.java,v 1.3 2003/08/31 17:28:42 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestFixedSizeList.java,v 1.4 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -64,18 +64,18 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
/**
* Extension of {@link TestList} for exercising the {@link FixedSizeList}
* implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:42 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:34 $
*
* @author Stephen Colebourne
*/
public class TestFixedSizeList extends TestList {
public class TestFixedSizeList extends AbstractTestList {
public TestFixedSizeList(String testName) {
super(testName);

View File

@ -63,18 +63,18 @@ import junit.framework.TestSuite;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.PredicateUtils;
import org.apache.commons.collections.TestCollection;
import org.apache.commons.collections.AbstractTestCollection;
/**
* Extension of {@link TestCollection} for exercising the
* {@link PredicatedCollection} implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/09/20 17:05:36 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:34 $
*
* @author Phil Steitz
*/
public class TestPredicatedCollection extends TestCollection {
public class TestPredicatedCollection extends AbstractTestCollection {
public TestPredicatedCollection(String name) {
super(name);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestPredicatedList.java,v 1.2 2003/09/20 17:05:36 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestPredicatedList.java,v 1.3 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -65,18 +65,18 @@ import junit.framework.TestSuite;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.PredicateUtils;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
/**
* Extension of {@link TestList} for exercising the
* {@link PredicatedList} implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/09/20 17:05:36 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:34 $
*
* @author Phil Steitz
*/
public class TestPredicatedList extends TestList{
public class TestPredicatedList extends AbstractTestList{
public TestPredicatedList(String testName) {
super(testName);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestTransformedCollection.java,v 1.3 2003/08/31 17:28:42 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestTransformedCollection.java,v 1.4 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -66,7 +66,7 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestCollection;
import org.apache.commons.collections.AbstractTestCollection;
import org.apache.commons.collections.Transformer;
/**
@ -74,11 +74,11 @@ import org.apache.commons.collections.Transformer;
* implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:42 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:34 $
*
* @author Stephen Colebourne
*/
public class TestTransformedCollection extends TestCollection {
public class TestTransformedCollection extends AbstractTestCollection {
private static class Noop implements Transformer, Serializable {
public Object transform(Object input) {

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestTransformedList.java,v 1.2 2003/08/31 17:28:42 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/decorators/Attic/TestTransformedList.java,v 1.3 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -66,18 +66,18 @@ import java.util.ListIterator;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
/**
* Extension of {@link TestList} for exercising the {@link TransformedList}
* implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:42 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:34 $
*
* @author Stephen Colebourne
*/
public class TestTransformedList extends TestList {
public class TestTransformedList extends AbstractTestList {
public TestTransformedList(String testName) {
super(testName);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/AbstractTestIterator.java,v 1.1 2003/10/01 21:54:54 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/iterators/AbstractTestIterator.java,v 1.2 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -60,7 +60,7 @@ package org.apache.commons.collections.iterators;
import java.util.Iterator;
import java.util.NoSuchElementException;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
/**
* Abstract class for testing the Iterator interface.
@ -71,12 +71,12 @@ import org.apache.commons.collections.TestObject;
* overriding the supportsXxx() methods if necessary.
*
* @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/10/01 21:54:54 $
* @version $Revision: 1.2 $ $Date: 2003/10/02 22:14:34 $
*
* @author Morgan Delagrange
* @author Stephen Colebourne
*/
public abstract class AbstractTestIterator extends TestObject {
public abstract class AbstractTestIterator extends AbstractTestObject {
/**
* JUnit constructor.

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableBuffer.java,v 1.1 2003/09/21 20:01:53 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableBuffer.java,v 1.2 2003/10/02 22:14:35 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -65,18 +65,18 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.ArrayStack;
import org.apache.commons.collections.TestCollection;
import org.apache.commons.collections.AbstractTestCollection;
/**
* Extension of {@link TestCollection} for exercising the
* {@link ObservableBuffer} implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/09/21 20:01:53 $
* @version $Revision: 1.2 $ $Date: 2003/10/02 22:14:35 $
*
* @author Stephen Colebourne
*/
public class TestObservableBuffer extends TestCollection implements ObservedTestHelper.ObservedFactory {
public class TestObservableBuffer extends AbstractTestCollection implements ObservedTestHelper.ObservedFactory {
public TestObservableBuffer(String testName) {
super(testName);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableCollection.java,v 1.1 2003/09/21 20:01:53 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableCollection.java,v 1.2 2003/10/02 22:14:35 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -65,18 +65,18 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestCollection;
import org.apache.commons.collections.AbstractTestCollection;
/**
* Extension of {@link TestCollection} for exercising the
* {@link ObservedCollection} implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/09/21 20:01:53 $
* @version $Revision: 1.2 $ $Date: 2003/10/02 22:14:35 $
*
* @author Stephen Colebourne
*/
public class TestObservableCollection extends TestCollection implements ObservedTestHelper.ObservedFactory {
public class TestObservableCollection extends AbstractTestCollection implements ObservedTestHelper.ObservedFactory {
public TestObservableCollection(String testName) {
super(testName);

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableList.java,v 1.1 2003/09/21 20:01:53 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/observed/Attic/TestObservableList.java,v 1.2 2003/10/02 22:14:34 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@ -64,18 +64,18 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
/**
* Extension of {@link TestList} for exercising the
* {@link ObservedList} implementation.
*
* @since Commons Collections 3.0
* @version $Revision: 1.1 $ $Date: 2003/09/21 20:01:53 $
* @version $Revision: 1.2 $ $Date: 2003/10/02 22:14:34 $
*
* @author Stephen Colebourne
*/
public class TestObservableList extends TestList implements ObservedTestHelper.ObservedFactory {
public class TestObservableList extends AbstractTestList implements ObservedTestHelper.ObservedFactory {
public TestObservableList(String testName) {
super(testName);

View File

@ -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/TestAbstractLongArrayList.java,v 1.7 2003/08/31 17:28:41 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestAbstractLongArrayList.java,v 1.8 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -59,13 +59,13 @@ package org.apache.commons.collections.primitives;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
/**
* @version $Revision: 1.7 $ $Date: 2003/08/31 17:28:41 $
* @version $Revision: 1.8 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestAbstractLongArrayList extends TestList {
public abstract class TestAbstractLongArrayList extends AbstractTestList {
//------------------------------------------------------------ Conventional

View File

@ -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/TestByteList.java,v 1.3 2003/08/31 17:28:41 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestByteList.java,v 1.4 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.ByteListList;
import org.apache.commons.collections.primitives.adapters.ListByteList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:41 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestByteList extends TestList {
public abstract class TestByteList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestCharList.java,v 1.3 2003/08/31 17:28:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestCharList.java,v 1.4 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.CharListList;
import org.apache.commons.collections.primitives.adapters.ListCharList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:40 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestCharList extends TestList {
public abstract class TestCharList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestDoubleList.java,v 1.2 2003/08/31 17:28:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestDoubleList.java,v 1.3 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.DoubleListList;
import org.apache.commons.collections.primitives.adapters.ListDoubleList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:40 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestDoubleList extends TestList {
public abstract class TestDoubleList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestFloatList.java,v 1.2 2003/08/31 17:28:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestFloatList.java,v 1.3 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.FloatListList;
import org.apache.commons.collections.primitives.adapters.ListFloatList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:40 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestFloatList extends TestList {
public abstract class TestFloatList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestIntList.java,v 1.10 2003/08/31 17:28:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestIntList.java,v 1.11 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.IntListList;
import org.apache.commons.collections.primitives.adapters.ListIntList;
/**
* @version $Revision: 1.10 $ $Date: 2003/08/31 17:28:40 $
* @version $Revision: 1.11 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestIntList extends TestList {
public abstract class TestIntList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestLongList.java,v 1.2 2003/08/31 17:28:40 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestLongList.java,v 1.3 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.LongListList;
import org.apache.commons.collections.primitives.adapters.ListLongList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:40 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestLongList extends TestList {
public abstract class TestLongList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -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/TestShortList.java,v 1.3 2003/08/31 17:28:41 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/Attic/TestShortList.java,v 1.4 2003/10/02 22:14:33 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -61,15 +61,15 @@ import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.adapters.ShortListList;
import org.apache.commons.collections.primitives.adapters.ListShortList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:41 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:33 $
* @author Rodney Waldhoff
*/
public abstract class TestShortList extends TestList {
public abstract class TestShortList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestByteCollectionCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestByteCollectionCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessByteList;
import org.apache.commons.collections.primitives.ArrayByteList;
import org.apache.commons.collections.primitives.ByteList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestByteCollectionCollection extends TestObject {
public class TestByteCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestByteListList.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestByteListList.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessByteList;
import org.apache.commons.collections.primitives.ArrayByteList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestByteListList extends TestList {
public class TestByteListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCharCollectionCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCharCollectionCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessCharList;
import org.apache.commons.collections.primitives.ArrayCharList;
import org.apache.commons.collections.primitives.CharList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCharCollectionCollection extends TestObject {
public class TestCharCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCharListList.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCharListList.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessCharList;
import org.apache.commons.collections.primitives.ArrayCharList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCharListList extends TestList {
public class TestCharListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionByteCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionByteCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.ByteCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionByteCollection extends TestObject {
public class TestCollectionByteCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionCharCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionCharCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.CharCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionCharCollection extends TestObject {
public class TestCollectionCharCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionDoubleCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionDoubleCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.DoubleCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionDoubleCollection extends TestObject {
public class TestCollectionDoubleCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionFloatCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionFloatCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.FloatCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionFloatCollection extends TestObject {
public class TestCollectionFloatCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionIntCollection.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionIntCollection.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.IntCollection;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionIntCollection extends TestObject {
public class TestCollectionIntCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionLongCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionLongCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.LongCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionLongCollection extends TestObject {
public class TestCollectionLongCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionShortCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestCollectionShortCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -65,14 +65,14 @@ import java.util.List;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.ShortCollection;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestCollectionShortCollection extends TestObject {
public class TestCollectionShortCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestDoubleCollectionCollection.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestDoubleCollectionCollection.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessDoubleList;
import org.apache.commons.collections.primitives.ArrayDoubleList;
import org.apache.commons.collections.primitives.DoubleList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestDoubleCollectionCollection extends TestObject {
public class TestDoubleCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestDoubleListList.java,v 1.2 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestDoubleListList.java,v 1.3 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessDoubleList;
import org.apache.commons.collections.primitives.ArrayDoubleList;
/**
* @version $Revision: 1.2 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.3 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestDoubleListList extends TestList {
public class TestDoubleListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatCollectionCollection.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatCollectionCollection.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessFloatList;
import org.apache.commons.collections.primitives.ArrayFloatList;
import org.apache.commons.collections.primitives.FloatList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestFloatCollectionCollection extends TestObject {
public class TestFloatCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListList.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestFloatListList.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessFloatList;
import org.apache.commons.collections.primitives.ArrayFloatList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestFloatListList extends TestList {
public class TestFloatListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntCollectionCollection.java,v 1.4 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntCollectionCollection.java,v 1.5 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessIntList;
import org.apache.commons.collections.primitives.ArrayIntList;
import org.apache.commons.collections.primitives.IntList;
/**
* @version $Revision: 1.4 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.5 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestIntCollectionCollection extends TestObject {
public class TestIntCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListList.java,v 1.5 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestIntListList.java,v 1.6 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessIntList;
import org.apache.commons.collections.primitives.ArrayIntList;
/**
* @version $Revision: 1.5 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.6 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestIntListList extends TestList {
public class TestIntListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongCollectionCollection.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongCollectionCollection.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessLongList;
import org.apache.commons.collections.primitives.ArrayLongList;
import org.apache.commons.collections.primitives.LongList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestLongCollectionCollection extends TestObject {
public class TestLongCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestLongListList.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessLongList;
import org.apache.commons.collections.primitives.ArrayLongList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestLongListList extends TestList {
public class TestLongListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortCollectionCollection.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortCollectionCollection.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -63,16 +63,16 @@ import java.util.Collection;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.TestObject;
import org.apache.commons.collections.AbstractTestObject;
import org.apache.commons.collections.primitives.RandomAccessShortList;
import org.apache.commons.collections.primitives.ArrayShortList;
import org.apache.commons.collections.primitives.ShortList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestShortCollectionCollection extends TestObject {
public class TestShortCollectionCollection extends AbstractTestObject {
// conventional
// ------------------------------------------------------------------------

View File

@ -1,5 +1,5 @@
/*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListList.java,v 1.3 2003/08/31 17:28:38 scolebourne Exp $
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/test/org/apache/commons/collections/primitives/adapters/Attic/TestShortListList.java,v 1.4 2003/10/02 22:14:31 scolebourne Exp $
* ====================================================================
* The Apache Software License, Version 1.1
*
@ -64,15 +64,15 @@ import junit.framework.Test;
import junit.framework.TestSuite;
import org.apache.commons.collections.BulkTest;
import org.apache.commons.collections.TestList;
import org.apache.commons.collections.AbstractTestList;
import org.apache.commons.collections.primitives.RandomAccessShortList;
import org.apache.commons.collections.primitives.ArrayShortList;
/**
* @version $Revision: 1.3 $ $Date: 2003/08/31 17:28:38 $
* @version $Revision: 1.4 $ $Date: 2003/10/02 22:14:31 $
* @author Rodney Waldhoff
*/
public class TestShortListList extends TestList {
public class TestShortListList extends AbstractTestList {
// conventional
// ------------------------------------------------------------------------