Cleanup of test classes wrt author, version tags.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1457518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-03-17 19:03:15 +00:00
parent 6cf9d485ab
commit f704906d20
20 changed files with 28 additions and 75 deletions

View File

@ -23,9 +23,7 @@ import org.apache.commons.collections.list.AbstractListTest;
/**
* Abstract test class for ArrayList.
*
* @version $Revision$
*
* @author Jason van Zyl
* @version $Id$
*/
public abstract class AbstractArrayListTest<E> extends AbstractListTest<E> {

View File

@ -38,11 +38,7 @@ import java.io.Serializable;
* you may still use this base set of cases. Simply override the
* test case (method) your {@link Object} fails.
*
* @version $Revision$
*
* @author Rodney Waldhoff
* @author Stephen Colebourne
* @author Anonymous
* @version $Id$
*/
public abstract class AbstractObjectTest extends BulkTest {

View File

@ -23,9 +23,7 @@ import org.apache.commons.collections.map.AbstractMapTest;
/**
* Tests TreeMap.
*
* @version $Revision$
*
* @author Jason van Zyl
* @version $Id$
*/
public abstract class AbstractTreeMapTest<K, V> extends AbstractMapTest<K, V> {

View File

@ -23,9 +23,7 @@ import java.util.List;
/**
* Tests TypedCollection.
*
* @version $Revision$
*
* @author Stephen Colebourne
* @version $Id$
*/
public abstract class AbstractTypedCollectionTest<T> extends BulkTest {

View File

@ -23,10 +23,9 @@ import junit.framework.Test;
/**
* Tests ArrayStack.
*
* @version $Revision$
*
* @author Craig McClanahan
* @version $Id$
*/
@SuppressWarnings("deprecation") // we test a deprecated class
public class ArrayStackTest<E> extends AbstractArrayListTest<E> {
public ArrayStackTest(final String testName) {

View File

@ -33,9 +33,7 @@ import org.apache.commons.collections.functors.TruePredicate;
/**
* Tests for BagUtils factory methods.
*
* @version $Revision$
*
* @author Phil Steitz
* @version $Id$
*/
public class BagUtilsTest extends BulkTest {

View File

@ -133,7 +133,6 @@ import junit.framework.TestSuite;
* The ordinary {@link TestSuite} constructor doesn't know how to
* interpret bulk test methods.
*
* @author Paul Jack
* @version $Id$
*/
public class BulkTest extends TestCase implements Cloneable {

View File

@ -31,12 +31,10 @@ import org.apache.commons.collections.functors.NOPClosure;
import org.apache.commons.collections.functors.TruePredicate;
/**
* Tests the org.apache.commons.collections.ClosureUtils class.
* Tests the ClosureUtils class.
*
* @since Commons Collections 3.0
* @version $Revision$
*
* @author Stephen Colebourne
* @since 3.0
* @version $Id$
*/
public class ClosureUtilsTest extends TestCase {

View File

@ -40,16 +40,7 @@ import org.junit.Test;
/**
* Tests for CollectionUtils.
*
* @author Rodney Waldhoff
* @author Matthew Hawthorne
* @author Stephen Colebourne
* @author Phil Steitz
* @author Steven Melzer
* @author Neil O'Toole
* @author Stephen Smith
* @author Stephen Kestle
*
* @version $Revision$
* @version $Id$
*/
@SuppressWarnings("boxing")
public class CollectionUtilsTest extends MockTestCase {

View File

@ -26,7 +26,6 @@ import junit.framework.Test;
/**
* Tests EnumerationUtils.
*
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @version $Id$
*/
public class EnumerationUtilsTest extends BulkTest {

View File

@ -33,10 +33,8 @@ import org.junit.Test;
/**
* Tests the org.apache.commons.collections.FactoryUtils class.
*
* @since Commons Collections 3.0
* @version $Revision$
*
* @author Stephen Colebourne
* @since 3.0
* @version $Id$
*/
public class FactoryUtilsTest extends junit.framework.TestCase {

View File

@ -130,10 +130,10 @@ public class ListUtilsTest extends BulkTest {
return o instanceof String;
}
};
List<Object> list = ListUtils.predicatedList(new ArrayStack<Object>(), predicate);
List<Object> list = ListUtils.predicatedList(new ArrayList<Object>(), predicate);
assertTrue("returned object should be a PredicatedList", list instanceof PredicatedList);
try {
list = ListUtils.predicatedList(new ArrayStack<Object>(), null);
list = ListUtils.predicatedList(new ArrayList<Object>(), null);
fail("Expecting IllegalArgumentException for null predicate.");
} catch (final IllegalArgumentException ex) {
// expected

View File

@ -26,9 +26,9 @@ import java.util.Set;
import org.apache.commons.collections.map.Flat3Map;
/**
* <code>TestMapPerformance</code> is designed to perform basic Map performance tests.
*
* @author Stephen Colebourne
* <code>MapPerformanceTest</code> is designed to perform basic Map performance tests.
*
* @version $Id$
*/
public class MapPerformance {

View File

@ -41,13 +41,7 @@ import org.apache.commons.collections.collection.TransformedCollectionTest;
/**
* Tests for MapUtils.
*
* @version $Revision$
*
* @author Stephen Colebourne
* @author Arun Mammen Thomas
* @author Max Rydahl Andersen
* @author Janek Bogucki
* @author Neil O'Toole
* @version $Id$
*/
@SuppressWarnings("boxing")
public class MapUtilsTest extends BulkTest {

View File

@ -27,8 +27,6 @@ import org.easymock.IExpectationSetters;
* Provides utilities for making mock-based tests. Most notable is the generic "type-safe"
* {@link #createMock(Class)} method, and {@link #replay()} and {@link #verify()} methods
* that call the respective methods on all created mock objects.
*
* @author Stephen Kestle
*/
public abstract class MockTestCase {
private final List<Object> mockObjects = new ArrayList<Object>();

View File

@ -41,13 +41,10 @@ import org.apache.commons.collections.functors.TruePredicate;
import org.junit.Test;
/**
* Tests the org.apache.commons.collections.PredicateUtils class.
* Tests the PredicateUtils class.
*
* @since Commons Collections 3.0
* @version $Revision$
*
* @author Stephen Colebourne
* @author Matt Benson
* @since 3.0
* @version $Id$
*/
@SuppressWarnings("boxing")
public class PredicateUtilsTest extends AbstractPredicateTest {

View File

@ -28,11 +28,7 @@ import org.apache.commons.collections.set.PredicatedSet;
/**
* Tests for SetUtils.
*
* @version $Revision$
*
* @author Stephen Colebourne
* @author Neil O'Toole
* @author Matthew Hawthorne
* @version $Id$
*/
public class SetUtilsTest extends BulkTest {

View File

@ -26,7 +26,7 @@ import org.apache.commons.collections.splitmap.TransformedMap;
/**
* Tests for {@link TransformedMap}
*
* @since Commons Collections 4.0
* @since 4.0
* @version $Id$
*/
@SuppressWarnings("boxing")

View File

@ -27,8 +27,7 @@ import java.io.ObjectOutputStream;
public final class TestUtils {
private TestUtils() {
}
private TestUtils() {}
/**
* Asserts that deserialization of the object returns the same object as the

View File

@ -34,13 +34,10 @@ import org.apache.commons.collections.functors.StringValueTransformer;
import org.apache.commons.collections.functors.TruePredicate;
/**
* Tests the org.apache.commons.collections.TransformerUtils class.
* Tests the TransformerUtils class.
*
* @since Commons Collections 3.0
* @version $Revision$
*
* @author Stephen Colebourne
* @author James Carman
* @since 3.0
* @version $Id$
*/
public class TransformerUtilsTest extends junit.framework.TestCase {