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:
parent
6cf9d485ab
commit
f704906d20
|
@ -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> {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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> {
|
||||
|
||||
|
|
|
@ -23,9 +23,7 @@ import java.util.List;
|
|||
/**
|
||||
* Tests TypedCollection.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AbstractTypedCollectionTest<T> extends BulkTest {
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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>();
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue