Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F292D174 for ; Mon, 6 Aug 2012 20:35:32 +0000 (UTC) Received: (qmail 5195 invoked by uid 500); 6 Aug 2012 20:35:31 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 5128 invoked by uid 500); 6 Aug 2012 20:35:31 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 5119 invoked by uid 99); 6 Aug 2012 20:35:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 20:35:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 20:35:28 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id E20C2238890B for ; Mon, 6 Aug 2012 20:34:44 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1369988 - in /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections: ./ bag/ buffer/ collection/ list/ map/ set/ Date: Mon, 06 Aug 2012 20:34:43 -0000 To: commits@commons.apache.org From: tn@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120806203444.E20C2238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tn Date: Mon Aug 6 20:34:42 2012 New Revision: 1369988 URL: http://svn.apache.org/viewvc?rev=1369988&view=rev Log: Renamed collection tests. Added: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java - copied, changed from r1366804, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractTestCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestCompositeCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestPredicatedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestSynchronizedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestTransformedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableCollectionTest.java - copied, changed from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableCollection.java Removed: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractTestCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestCompositeCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestPredicatedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestSynchronizedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestTransformedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableCollection.java Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestMapUtils.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestBoundedFifoBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestCircularFifoBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPredicatedBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPriorityBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestSynchronizedBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestTransformedBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnmodifiableBuffer.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/AbstractTestList.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/TestTransformedList.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/AbstractTestMap.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedMap.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedSortedMap.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/AbstractTestSet.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSet.java commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSortedSet.java Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestMapUtils.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestMapUtils.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestMapUtils.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/TestMapUtils.java Mon Aug 6 20:34:42 2012 @@ -36,7 +36,7 @@ import org.apache.commons.collections.ke import org.apache.commons.collections.map.HashedMap; import org.apache.commons.collections.map.LazyMap; import org.apache.commons.collections.map.PredicatedMap; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Tests for MapUtils. @@ -756,7 +756,7 @@ public class TestMapUtils extends BulkTe // Now test key transform population Map map = new HashMap(); - MapUtils.populateMap(map, list, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + MapUtils.populateMap(map, list, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(list.size(), map.size()); for (int i = 0; i < list.size(); i++) { @@ -768,7 +768,7 @@ public class TestMapUtils extends BulkTe // Now test both Key-Value transform population map = new HashMap(); - MapUtils.populateMap(map, list, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + MapUtils.populateMap(map, list, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(list.size(), map.size()); for (int i = 0; i < list.size(); i++) { Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedBagTest.java Mon Aug 6 20:34:42 2012 @@ -18,7 +18,7 @@ package org.apache.commons.collections.b import org.apache.commons.collections.Bag; import org.apache.commons.collections.Transformer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractBagTest} for exercising the {@link TransformedBag} @@ -37,14 +37,14 @@ public class TransformedBagTest exten @SuppressWarnings("unchecked") public Bag makeObject() { return TransformedBag.transformingBag(new HashBag(), - (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @SuppressWarnings("unchecked") public void testTransformedBag() { //T had better be Object! Bag bag = TransformedBag.transformingBag(new HashBag(), - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, bag.size()); Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"}; for (int i = 0; i < els.length; i++) { @@ -66,7 +66,7 @@ public class TransformedBagTest exten originalBag.add((T) els[i]); } Bag bag = TransformedBag.transformedBag(originalBag, - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, bag.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, bag.contains(new Integer((String) els[i]))); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/bag/TransformedSortedBagTest.java Mon Aug 6 20:34:42 2012 @@ -19,7 +19,7 @@ package org.apache.commons.collections.b import org.apache.commons.collections.Bag; import org.apache.commons.collections.SortedBag; import org.apache.commons.collections.Transformer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractSortedBagTest} for exercising the {@link TransformedSortedBag} @@ -37,12 +37,12 @@ public class TransformedSortedBagTest @Override @SuppressWarnings("unchecked") public SortedBag makeObject() { - return TransformedSortedBag.transformingSortedBag(new TreeBag(), (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + return TransformedSortedBag.transformingSortedBag(new TreeBag(), (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @SuppressWarnings("unchecked") public void testTransformedBag() { - SortedBag bag = TransformedSortedBag.transformingSortedBag(new TreeBag(), (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + SortedBag bag = TransformedSortedBag.transformingSortedBag(new TreeBag(), (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, bag.size()); Object[] els = new Object[] {"1", "3", "5", "7", "2", "4", "6"}; for (int i = 0; i < els.length; i++) { @@ -61,7 +61,7 @@ public class TransformedSortedBagTest for (int i = 0; i < els.length; i++) { originalBag.add(els[i]); } - Bag bag = TransformedBag.transformedBag(originalBag, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Bag bag = TransformedBag.transformedBag(originalBag, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, bag.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, bag.contains(new Integer((String) els[i]))); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestBoundedFifoBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestBoundedFifoBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestBoundedFifoBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestBoundedFifoBuffer.java Mon Aug 6 20:34:42 2012 @@ -25,7 +25,7 @@ import junit.framework.Test; import org.apache.commons.collections.BufferUnderflowException; import org.apache.commons.collections.BulkTest; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** * Test cases for BoundedFifoBuffer. @@ -34,7 +34,7 @@ import org.apache.commons.collections.co * * @author Paul Jack */ -public class TestBoundedFifoBuffer extends AbstractTestCollection { +public class TestBoundedFifoBuffer extends AbstractCollectionTest { public TestBoundedFifoBuffer(String n) { super(n); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestCircularFifoBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestCircularFifoBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestCircularFifoBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestCircularFifoBuffer.java Mon Aug 6 20:34:42 2012 @@ -29,7 +29,7 @@ import junit.framework.Test; import org.apache.commons.collections.Buffer; import org.apache.commons.collections.BufferUnderflowException; import org.apache.commons.collections.BulkTest; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** * Test cases for CircularFifoBuffer. @@ -38,7 +38,7 @@ import org.apache.commons.collections.co * * @author Stephen Colebourne */ -public class TestCircularFifoBuffer extends AbstractTestCollection { +public class TestCircularFifoBuffer extends AbstractCollectionTest { public TestCircularFifoBuffer(String n) { super(n); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPredicatedBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPredicatedBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPredicatedBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPredicatedBuffer.java Mon Aug 6 20:34:42 2012 @@ -22,10 +22,10 @@ import org.apache.commons.collections.Ar import org.apache.commons.collections.Buffer; import org.apache.commons.collections.BufferUnderflowException; import org.apache.commons.collections.Predicate; -import org.apache.commons.collections.collection.TestPredicatedCollection; +import org.apache.commons.collections.collection.PredicatedCollectionTest; /** - * Extension of {@link TestPredicatedCollection} for exercising the + * Extension of {@link PredicatedCollectionTest} for exercising the * {@link PredicatedBuffer} implementation. * * @since Commons Collections 3.0 @@ -33,7 +33,7 @@ import org.apache.commons.collections.co * * @author Phil Steitz */ -public class TestPredicatedBuffer extends TestPredicatedCollection { +public class TestPredicatedBuffer extends PredicatedCollectionTest { public TestPredicatedBuffer(String testName) { super(testName); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPriorityBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPriorityBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPriorityBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestPriorityBuffer.java Mon Aug 6 20:34:42 2012 @@ -27,7 +27,7 @@ import java.util.Random; import org.apache.commons.collections.Buffer; import org.apache.commons.collections.BufferUnderflowException; import org.apache.commons.collections.ComparatorUtils; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; import org.apache.commons.collections.comparators.ComparableComparator; import org.apache.commons.collections.comparators.ReverseComparator; @@ -40,7 +40,7 @@ import org.apache.commons.collections.co * @author Steve Phelps */ @SuppressWarnings("boxing") -public class TestPriorityBuffer extends AbstractTestCollection { +public class TestPriorityBuffer extends AbstractCollectionTest { public TestPriorityBuffer(String testName) { super(testName); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestSynchronizedBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestSynchronizedBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestSynchronizedBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestSynchronizedBuffer.java Mon Aug 6 20:34:42 2012 @@ -21,10 +21,10 @@ import java.util.Collection; import org.apache.commons.collections.ArrayStack; import org.apache.commons.collections.Buffer; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link SynchronizedBuffer} implementation. * * @since Commons Collections 3.1 @@ -33,7 +33,7 @@ import org.apache.commons.collections.co * @author Phil Steitz * @author Stephen Colebourne */ -public class TestSynchronizedBuffer extends AbstractTestCollection { +public class TestSynchronizedBuffer extends AbstractCollectionTest { public TestSynchronizedBuffer(String testName) { super(testName); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestTransformedBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestTransformedBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestTransformedBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestTransformedBuffer.java Mon Aug 6 20:34:42 2012 @@ -19,7 +19,7 @@ package org.apache.commons.collections.b import junit.framework.TestCase; import org.apache.commons.collections.ArrayStack; import org.apache.commons.collections.Buffer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link TestCase} for exercising the {@link TransformedBuffer} @@ -37,7 +37,7 @@ public class TestTransformedBuffer exten } public void testTransformedBuffer() { - Buffer buffer = TransformedBuffer.transformingBuffer(new ArrayStack(), TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Buffer buffer = TransformedBuffer.transformingBuffer(new ArrayStack(), TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, buffer.size()); Object[] els = new Object[] { "1", "3", "5", "7", "2", "4", "6" }; for (int i = 0; i < els.length; i++) { @@ -58,7 +58,7 @@ public class TestTransformedBuffer exten for (int i = 0; i < els.length; i++) { originalBuffer.add(els[i]); } - Buffer buffer = TransformedBuffer.transformedBuffer(originalBuffer, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Buffer buffer = TransformedBuffer.transformedBuffer(originalBuffer, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, buffer.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, buffer.contains(new Integer((String) els[i]))); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnboundedFifoBuffer.java Mon Aug 6 20:34:42 2012 @@ -24,7 +24,7 @@ import java.util.List; import junit.framework.Test; import org.apache.commons.collections.BulkTest; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** * Test cases for UnboundedFifoBuffer. @@ -33,7 +33,7 @@ import org.apache.commons.collections.co * * @author Unknown */ -public class TestUnboundedFifoBuffer extends AbstractTestCollection { +public class TestUnboundedFifoBuffer extends AbstractCollectionTest { public TestUnboundedFifoBuffer(String n) { super(n); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnmodifiableBuffer.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnmodifiableBuffer.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnmodifiableBuffer.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/buffer/TestUnmodifiableBuffer.java Mon Aug 6 20:34:42 2012 @@ -21,10 +21,10 @@ import java.util.Collection; import org.apache.commons.collections.ArrayStack; import org.apache.commons.collections.Buffer; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link UnmodifiableBuffer} implementation. * * @since Commons Collections 3.1 @@ -33,7 +33,7 @@ import org.apache.commons.collections.co * @author Phil Steitz * @author Stephen Colebourne */ -public class TestUnmodifiableBuffer extends AbstractTestCollection { +public class TestUnmodifiableBuffer extends AbstractCollectionTest { public TestUnmodifiableBuffer(String testName) { super(testName); Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java (from r1366804, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractTestCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractTestCollection.java&r1=1366804&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractTestCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/AbstractCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -125,7 +125,7 @@ import org.apache.commons.collections.Ab * @author Neil O'Toole * @author Stephen Colebourne */ -public abstract class AbstractTestCollection extends AbstractTestObject { +public abstract class AbstractCollectionTest extends AbstractTestObject { // // NOTE: @@ -160,7 +160,7 @@ public abstract class AbstractTestCollec * * @param testName the test class name */ - public AbstractTestCollection(String testName) { + public AbstractCollectionTest(String testName) { super(testName); } Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestCompositeCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestCompositeCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestCompositeCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/CompositeCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -24,7 +24,7 @@ import java.util.Iterator; import java.util.List; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link CompositeCollection} implementation. * * @since Commons Collections 3.0 @@ -33,9 +33,9 @@ import java.util.List; * @author Brian McCallister * @author Phil Steitz */ -public class TestCompositeCollection extends AbstractTestCollection { +public class CompositeCollectionTest extends AbstractCollectionTest { - public TestCompositeCollection(String name) { + public CompositeCollectionTest(String name) { super(name); } Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestPredicatedCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestPredicatedCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestPredicatedCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/PredicatedCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -25,7 +25,7 @@ import org.apache.commons.collections.Pr import org.apache.commons.collections.functors.TruePredicate; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link PredicatedCollection} implementation. * * @since Commons Collections 3.0 @@ -33,9 +33,9 @@ import org.apache.commons.collections.fu * * @author Phil Steitz */ -public class TestPredicatedCollection extends AbstractTestCollection { +public class PredicatedCollectionTest extends AbstractCollectionTest { - public TestPredicatedCollection(String name) { + public PredicatedCollectionTest(String name) { super(name); } Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestSynchronizedCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestSynchronizedCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestSynchronizedCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/SynchronizedCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -21,7 +21,7 @@ import java.util.Arrays; import java.util.Collection; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link SynchronizedCollection} implementation. * * @since Commons Collections 3.1 @@ -30,9 +30,9 @@ import java.util.Collection; * @author Phil Steitz * @author Stephen Colebourne */ -public class TestSynchronizedCollection extends AbstractTestCollection { +public class SynchronizedCollectionTest extends AbstractCollectionTest { - public TestSynchronizedCollection(String testName) { + public SynchronizedCollectionTest(String testName) { super(testName); } Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestTransformedCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestTransformedCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestTransformedCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TransformedCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -25,7 +25,7 @@ import org.apache.commons.collections.Tr import org.apache.commons.collections.TransformerUtils; /** - * Extension of {@link AbstractTestCollection} for exercising the {@link TransformedCollection} + * Extension of {@link AbstractCollectionTest} for exercising the {@link TransformedCollection} * implementation. * * @since Commons Collections 3.0 @@ -33,7 +33,7 @@ import org.apache.commons.collections.Tr * * @author Stephen Colebourne */ -public class TestTransformedCollection extends AbstractTestCollection { +public class TransformedCollectionTest extends AbstractCollectionTest { private static class StringToInteger implements Transformer { public Object transform(Object input) { @@ -44,7 +44,7 @@ public class TestTransformedCollection e public static final Transformer NOOP_TRANSFORMER = TransformerUtils.nopTransformer(); public static final Transformer STRING_TO_INTEGER_TRANSFORMER = new StringToInteger(); - public TestTransformedCollection(String testName) { + public TransformedCollectionTest(String testName) { super(testName); } @@ -105,7 +105,7 @@ public class TestTransformedCollection e for (int i = 0; i < els.length; i++) { originalCollection.add(els[i]); } - Collection collection = TransformedCollection.transformedCollection(originalCollection, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Collection collection = TransformedCollection.transformedCollection(originalCollection, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, collection.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, collection.contains(new Integer((String) els[i]))); Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableBoundedCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableBoundedCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -26,12 +26,12 @@ import org.apache.commons.collections.Bu import org.apache.commons.collections.buffer.BoundedBuffer; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link UnmodifiableBoundedCollection} implementation. */ -public class TestUnmodifiableBoundedCollection extends AbstractTestCollection { +public class UnmodifiableBoundedCollectionTest extends AbstractCollectionTest { - public TestUnmodifiableBoundedCollection(String testName) { + public UnmodifiableBoundedCollectionTest(String testName) { super(testName); } Copied: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableCollectionTest.java (from r1361641, commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableCollection.java) URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableCollectionTest.java?p2=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableCollectionTest.java&p1=commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableCollection.java&r1=1361641&r2=1369988&rev=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/TestUnmodifiableCollection.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/collection/UnmodifiableCollectionTest.java Mon Aug 6 20:34:42 2012 @@ -22,7 +22,7 @@ import java.util.Collection; import java.util.List; /** - * Extension of {@link AbstractTestCollection} for exercising the + * Extension of {@link AbstractCollectionTest} for exercising the * {@link UnmodifiableCollection} implementation. * * @since Commons Collections 3.0 @@ -31,9 +31,9 @@ import java.util.List; * @author Phil Steitz * @author Stephen Colebourne */ -public class TestUnmodifiableCollection extends AbstractTestCollection { +public class UnmodifiableCollectionTest extends AbstractCollectionTest { - public TestUnmodifiableCollection(String testName) { + public UnmodifiableCollectionTest(String testName) { super(testName); } Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/AbstractTestList.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/AbstractTestList.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/AbstractTestList.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/AbstractTestList.java Mon Aug 6 20:34:42 2012 @@ -32,7 +32,7 @@ import java.util.ListIterator; import java.util.NoSuchElementException; import org.apache.commons.collections.BulkTest; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; import org.apache.commons.collections.iterators.AbstractTestListIterator; /** @@ -53,7 +53,7 @@ import org.apache.commons.collections.it * @author Stephen Colebourne * @author Neil O'Toole */ -public abstract class AbstractTestList extends AbstractTestCollection { +public abstract class AbstractTestList extends AbstractCollectionTest { /** * JUnit constructor. Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/TestTransformedList.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/TestTransformedList.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/TestTransformedList.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/list/TestTransformedList.java Mon Aug 6 20:34:42 2012 @@ -22,7 +22,7 @@ import java.util.List; import java.util.ListIterator; import org.apache.commons.collections.Transformer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractTestList} for exercising the {@link TransformedList} @@ -54,7 +54,7 @@ public class TestTransformedList exte @Override @SuppressWarnings("unchecked") public List makeObject() { - return TransformedList.transformingList(new ArrayList(), (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + return TransformedList.transformingList(new ArrayList(), (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @Override @@ -62,12 +62,12 @@ public class TestTransformedList exte public List makeFullCollection() { List list = new ArrayList(); list.addAll(Arrays.asList(getFullElements())); - return TransformedList.transformingList(list, (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + return TransformedList.transformingList(list, (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @SuppressWarnings("unchecked") public void testTransformedList() { - List list = TransformedList.transformingList(new ArrayList(), (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + List list = TransformedList.transformingList(new ArrayList(), (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, list.size()); E[] els = (E[]) new Object[] {"1", "3", "5", "7", "2", "4", "6"}; for (int i = 0; i < els.length; i++) { @@ -119,7 +119,7 @@ public class TestTransformedList exte for (int i = 0; i < els.length; i++) { originalList.add(els[i]); } - List list = TransformedList.transformedList(originalList, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + List list = TransformedList.transformedList(originalList, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, list.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, list.contains(new Integer((String) els[i]))); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/AbstractTestMap.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/AbstractTestMap.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/AbstractTestMap.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/AbstractTestMap.java Mon Aug 6 20:34:42 2012 @@ -32,14 +32,14 @@ import java.util.Set; import org.apache.commons.collections.AbstractTestObject; import org.apache.commons.collections.BulkTest; import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; import org.apache.commons.collections.keyvalue.DefaultMapEntry; import org.apache.commons.collections.set.AbstractTestSet; /** * Abstract test class for {@link java.util.Map} methods and contracts. *

- * The forces at work here are similar to those in {@link AbstractTestCollection}. + * The forces at work here are similar to those in {@link AbstractCollectionTest}. * If your class implements the full Map interface, including optional * operations, simply extend this class, and implement the * {@link #makeObject()} method. @@ -1778,18 +1778,18 @@ public abstract class AbstractTestMap { + public class TestMapValues extends AbstractCollectionTest { public TestMapValues() { super(""); } Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedMap.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedMap.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedMap.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedMap.java Mon Aug 6 20:34:42 2012 @@ -23,7 +23,7 @@ import java.util.Set; import org.apache.commons.collections.IterableMap; import org.apache.commons.collections.Transformer; import org.apache.commons.collections.TransformerUtils; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractTestMap} for exercising the {@link TransformedMap} @@ -55,7 +55,7 @@ public class TestTransformedMap ex Map map = TransformedMap .transformingMap( new HashMap(), - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER, + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER, null); assertEquals(0, map.size()); for (int i = 0; i < els.length; i++) { @@ -70,7 +70,7 @@ public class TestTransformedMap ex assertEquals(null, map.remove(els[0])); assertEquals(els[0], map.remove(new Integer((String) els[0]))); - map = TransformedMap.transformingMap(new HashMap(), null, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + map = TransformedMap.transformingMap(new HashMap(), null, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, map.size()); for (int i = 0; i < els.length; i++) { map.put((K) els[i], (V) els[i]); @@ -107,7 +107,7 @@ public class TestTransformedMap ex .transformingMap( base, null, - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(3, trans.size()); assertEquals("1", trans.get("A")); assertEquals("2", trans.get("B")); @@ -127,7 +127,7 @@ public class TestTransformedMap ex .transformedMap( base, null, - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(3, trans.size()); assertEquals(new Integer(1), trans.get("A")); assertEquals(new Integer(2), trans.get("B")); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedSortedMap.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedSortedMap.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedSortedMap.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/map/TestTransformedSortedMap.java Mon Aug 6 20:34:42 2012 @@ -26,7 +26,7 @@ import junit.framework.Test; import org.apache.commons.collections.BulkTest; import org.apache.commons.collections.Transformer; import org.apache.commons.collections.TransformerUtils; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractTestSortedMap} for exercising the {@link TransformedSortedMap} @@ -70,7 +70,7 @@ public class TestTransformedSortedMap map = TransformedSortedMap .transformingSortedMap( new TreeMap(), - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER, + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER, null); assertEquals(0, map.size()); for (int i = 0; i < els.length; i++) { @@ -95,7 +95,7 @@ public class TestTransformedSortedMap(), null, - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, map.size()); for (int i = 0; i < els.length; i++) { map.put((K) els[i], (V) els[i]); @@ -132,7 +132,7 @@ public class TestTransformedSortedMap) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(3, trans.size()); assertEquals("1", trans.get("A")); assertEquals("2", trans.get("B")); @@ -152,7 +152,7 @@ public class TestTransformedSortedMap) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(3, trans.size()); assertEquals(new Integer(1), trans.get("A")); assertEquals(new Integer(2), trans.get("B")); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/AbstractTestSet.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/AbstractTestSet.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/AbstractTestSet.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/AbstractTestSet.java Mon Aug 6 20:34:42 2012 @@ -22,7 +22,7 @@ import java.util.HashSet; import java.util.Iterator; import java.util.Set; -import org.apache.commons.collections.collection.AbstractTestCollection; +import org.apache.commons.collections.collection.AbstractCollectionTest; /** * Abstract test class for {@link Set} methods and contracts. @@ -36,14 +36,14 @@ import org.apache.commons.collections.co * To use, subclass and override the {@link #makeObject()} * method. You may have to override other protected methods if your * set is not modifiable, or if your set restricts what kinds of - * elements may be added; see {@link AbstractTestCollection} for more details. + * elements may be added; see {@link AbstractCollectionTest} for more details. * * @since Commons Collections 3.0 * @version $Revision$ * * @author Paul Jack */ -public abstract class AbstractTestSet extends AbstractTestCollection { +public abstract class AbstractTestSet extends AbstractCollectionTest { /** * JUnit constructor. @@ -128,7 +128,7 @@ public abstract class AbstractTestSet //----------------------------------------------------------------------- /** - * Return the {@link AbstractTestCollection#collection} fixture, but cast as a Set. + * Return the {@link AbstractCollectionTest#collection} fixture, but cast as a Set. */ @Override public Set getCollection() { @@ -136,7 +136,7 @@ public abstract class AbstractTestSet } /** - * Return the {@link AbstractTestCollection#confirmed} fixture, but cast as a Set. + * Return the {@link AbstractCollectionTest#confirmed} fixture, but cast as a Set. */ @Override public Set getConfirmed() { Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSet.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSet.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSet.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSet.java Mon Aug 6 20:34:42 2012 @@ -21,7 +21,7 @@ import java.util.HashSet; import java.util.Set; import org.apache.commons.collections.Transformer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractTestSet} for exercising the {@link TransformedSet} @@ -54,7 +54,7 @@ public class TestTransformedSet exten @SuppressWarnings("unchecked") public Set makeObject() { return TransformedSet.transformingSet(new HashSet(), - (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @Override @@ -63,13 +63,13 @@ public class TestTransformedSet exten Set list = new HashSet(); list.addAll(Arrays.asList(getFullElements())); return TransformedSet.transformingSet(list, - (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @SuppressWarnings("unchecked") public void testTransformedSet() { Set set = TransformedSet.transformingSet(new HashSet(), - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, set.size()); E[] els = (E[]) new Object[] { "1", "3", "5", "7", "2", "4", "6" }; for (int i = 0; i < els.length; i++) { @@ -90,7 +90,7 @@ public class TestTransformedSet exten for (int i = 0; i < els.length; i++) { originalSet.add(els[i]); } - Set set = TransformedSet.transformedSet(originalSet, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Set set = TransformedSet.transformedSet(originalSet, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, set.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, set.contains(new Integer((String) els[i]))); Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSortedSet.java URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSortedSet.java?rev=1369988&r1=1369987&r2=1369988&view=diff ============================================================================== --- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSortedSet.java (original) +++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections/set/TestTransformedSortedSet.java Mon Aug 6 20:34:42 2012 @@ -25,7 +25,7 @@ import junit.framework.Test; import org.apache.commons.collections.BulkTest; import org.apache.commons.collections.Transformer; -import org.apache.commons.collections.collection.TestTransformedCollection; +import org.apache.commons.collections.collection.TransformedCollectionTest; /** * Extension of {@link AbstractTestSortedSet} for exercising the {@link TransformedSortedSet} @@ -50,7 +50,7 @@ public class TestTransformedSortedSet @Override @SuppressWarnings("unchecked") public SortedSet makeObject() { - return TransformedSortedSet.transformingSortedSet(new TreeSet(), (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + return TransformedSortedSet.transformingSortedSet(new TreeSet(), (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } @Override @@ -58,14 +58,14 @@ public class TestTransformedSortedSet public SortedSet makeFullCollection() { SortedSet set = new TreeSet(); set.addAll(Arrays.asList(getFullElements())); - return TransformedSortedSet.transformingSortedSet(set, (Transformer) TestTransformedCollection.NOOP_TRANSFORMER); + return TransformedSortedSet.transformingSortedSet(set, (Transformer) TransformedCollectionTest.NOOP_TRANSFORMER); } //----------------------------------------------------------------------- @SuppressWarnings("unchecked") public void testTransformedSet() { SortedSet set = TransformedSortedSet.transformingSortedSet(new TreeSet(), - (Transformer) TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + (Transformer) TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(0, set.size()); E[] els = (E[]) new Object[] { "1", "3", "5", "7", "2", "4", "6" }; for (int i = 0; i < els.length; i++) { @@ -83,7 +83,7 @@ public class TestTransformedSortedSet for (int i = 0; i < els.length; i++) { originalSet.add(els[i]); } - Set set = TransformedSortedSet.transformedSet(originalSet, TestTransformedCollection.STRING_TO_INTEGER_TRANSFORMER); + Set set = TransformedSortedSet.transformedSet(originalSet, TransformedCollectionTest.STRING_TO_INTEGER_TRANSFORMER); assertEquals(els.length, set.size()); for (int i = 0; i < els.length; i++) { assertEquals(true, set.contains(new Integer((String) els[i])));