Changed test classes for bag package to <Class>Test.java notation.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1366804 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-07-29 10:21:47 +00:00
parent d3ebd16c42
commit 23405f00a3
10 changed files with 39 additions and 54 deletions

View File

@ -447,10 +447,12 @@
<configuration> <configuration>
<includes> <includes>
<include>**/Test*.java</include> <include>**/Test*.java</include>
<include>**/*Test.java</include>
</includes> </includes>
<excludes> <excludes>
<exclude>**/*$*</exclude> <exclude>**/*$*</exclude>
<exclude>**/TestUtils.java</exclude> <exclude>**/TestUtils.java</exclude>
<exclude>**/Abstract*.java</exclude>
</excludes> </excludes>
</configuration> </configuration>
</plugin> </plugin>

View File

@ -37,12 +37,9 @@ import org.apache.commons.collections.Bag;
* you may still use this base set of cases. Simply override the * you may still use this base set of cases. Simply override the
* test case (method) your bag fails. * test case (method) your bag fails.
* *
* @version $Revision$ * @version $Id$
*
* @author Chuck Burdick
* @author Stephen Colebourne
*/ */
public abstract class AbstractTestBag<T> extends AbstractTestObject { public abstract class AbstractBagTest<T> extends AbstractTestObject {
// TODO: this class should really extend from TestCollection, but the bag // TODO: this class should really extend from TestCollection, but the bag
// implementations currently do not conform to the Collection interface. Once // 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 // those are fixed or at least a strategy is made for resolving the issue, this
@ -53,7 +50,7 @@ public abstract class AbstractTestBag<T> extends AbstractTestObject {
* *
* @param testName the test class name * @param testName the test class name
*/ */
public AbstractTestBag(String testName) { public AbstractBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -23,14 +23,12 @@ import org.apache.commons.collections.SortedBag;
* {@link org.apache.commons.collections.SortedBag SortedBag} * {@link org.apache.commons.collections.SortedBag SortedBag}
* methods and contracts. * methods and contracts.
* *
* @since Commons Collections 3.0 * @since 3.0
* @version $Revision$ * @version $Id$
*
* @author Stephen Colebourne
*/ */
public abstract class AbstractTestSortedBag<T> extends AbstractTestBag<T> { public abstract class AbstractSortedBagTest<T> extends AbstractBagTest<T> {
public AbstractTestSortedBag(String testName) { public AbstractSortedBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -19,16 +19,14 @@ package org.apache.commons.collections.bag;
import org.apache.commons.collections.Bag; import org.apache.commons.collections.Bag;
/** /**
* Extension of {@link AbstractTestBag} for exercising the {@link HashBag} * Extension of {@link AbstractBagTest} for exercising the {@link HashBag}
* implementation. * implementation.
* *
* @version $Revision$ * @version $Id$
*
* @author Chuck Burdick
*/ */
public class TestHashBag<T> extends AbstractTestBag<T> { public class HashBagTest<T> extends AbstractBagTest<T> {
public TestHashBag(String testName) { public HashBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -23,17 +23,15 @@ import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.functors.TruePredicate; import org.apache.commons.collections.functors.TruePredicate;
/** /**
* Extension of {@link AbstractTestBag} for exercising the {@link PredicatedBag} * Extension of {@link AbstractBagTest} for exercising the {@link PredicatedBag}
* implementation. * implementation.
* *
* @since Commons Collections 3.0 * @since 3.0
* @version $Revision$ * @version $Id$
*
* @author Phil Steitz
*/ */
public class TestPredicatedBag<T> extends AbstractTestBag<T> { public class PredicatedBagTest<T> extends AbstractBagTest<T> {
public TestPredicatedBag(String testName) { public PredicatedBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -23,19 +23,17 @@ import org.apache.commons.collections.SortedBag;
import org.apache.commons.collections.functors.TruePredicate; import org.apache.commons.collections.functors.TruePredicate;
/** /**
* Extension of {@link AbstractTestSortedBag} for exercising the {@link PredicatedSortedBag} * Extension of {@link AbstractSortedBagTest} for exercising the {@link PredicatedSortedBag}
* implementation. * implementation.
* *
* @since Commons Collections 3.0 * @since 3.0
* @version $Revision$ * @version $Id$
*
* @author Phil Steitz
*/ */
public class TestPredicatedSortedBag<T> extends AbstractTestSortedBag<T> { public class PredicatedSortedBagTest<T> extends AbstractSortedBagTest<T> {
private SortedBag<T> nullBag = null; private SortedBag<T> nullBag = null;
public TestPredicatedSortedBag(String testName) { public PredicatedSortedBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -21,17 +21,15 @@ import org.apache.commons.collections.Transformer;
import org.apache.commons.collections.collection.TestTransformedCollection; import org.apache.commons.collections.collection.TestTransformedCollection;
/** /**
* Extension of {@link AbstractTestBag} for exercising the {@link TransformedBag} * Extension of {@link AbstractBagTest} for exercising the {@link TransformedBag}
* implementation. * implementation.
* *
* @since Commons Collections 3.0 * @since 3.0
* @version $Revision$ * @version $Id$
*
* @author Stephen Colebourne
*/ */
public class TestTransformedBag<T> extends AbstractTestBag<T> { public class TransformedBagTest<T> extends AbstractBagTest<T> {
public TestTransformedBag(String testName) { public TransformedBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -22,17 +22,15 @@ import org.apache.commons.collections.Transformer;
import org.apache.commons.collections.collection.TestTransformedCollection; import org.apache.commons.collections.collection.TestTransformedCollection;
/** /**
* Extension of {@link AbstractTestSortedBag} for exercising the {@link TransformedSortedBag} * Extension of {@link AbstractSortedBagTest} for exercising the {@link TransformedSortedBag}
* implementation. * implementation.
* *
* @since Commons Collections 3.0 * @since 3.0
* @version $Revision$ * @version $Id$
*
* @author Stephen Colebourne
*/ */
public class TestTransformedSortedBag<T> extends AbstractTestSortedBag<T> { public class TransformedSortedBagTest<T> extends AbstractSortedBagTest<T> {
public TestTransformedSortedBag(String testName) { public TransformedSortedBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -20,16 +20,14 @@ import org.apache.commons.collections.Bag;
import org.apache.commons.collections.SortedBag; import org.apache.commons.collections.SortedBag;
/** /**
* Extension of {@link AbstractTestBag} for exercising the {@link TreeBag} * Extension of {@link AbstractBagTest} for exercising the {@link TreeBag}
* implementation. * implementation.
* *
* @version $Revision$ * @version $Id$
*
* @author Chuck Burdick
*/ */
public class TestTreeBag<T> extends AbstractTestSortedBag<T> { public class TreeBagTest<T> extends AbstractSortedBagTest<T> {
public TestTreeBag(String testName) { public TreeBagTest(String testName) {
super(testName); super(testName);
} }

View File

@ -106,7 +106,7 @@ import org.apache.commons.collections.AbstractTestObject;
* <p> * <p>
* If you're extending {@link org.apache.commons.collections.list.AbstractTestList AbstractTestList}, * If you're extending {@link org.apache.commons.collections.list.AbstractTestList AbstractTestList},
* {@link org.apache.commons.collections.set.AbstractTestSet AbstractTestSet}, * {@link org.apache.commons.collections.set.AbstractTestSet AbstractTestSet},
* or {@link org.apache.commons.collections.bag.AbstractTestBag AbstractTestBag}, * or {@link org.apache.commons.collections.bag.AbstractBagTest AbstractTestBag},
* you probably don't have to worry about the * you probably don't have to worry about the
* above methods, because those three classes already override the methods * above methods, because those three classes already override the methods
* to provide standard JDK confirmed collections.<P> * to provide standard JDK confirmed collections.<P>