mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-17 15:35:00 +00:00
Cleanup map test package: remove authors, change to Id keyword.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1453044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
22b85223d2
commit
0ba8b8194e
@ -28,9 +28,7 @@ import org.apache.commons.collections.iterators.AbstractMapIteratorTest;
|
||||
/**
|
||||
* Abstract test class for {@link IterableMap} methods and contracts.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AbstractIterableMapTest<K, V> extends AbstractMapTest<K, V> {
|
||||
|
||||
|
@ -119,11 +119,7 @@ import org.apache.commons.collections.set.AbstractSetTest;
|
||||
* cases. For example, if your map does not allow duplicate values, override
|
||||
* {@link #isAllowDuplicateValues()} and have it return <code>false</code>
|
||||
*
|
||||
* @author Michael Smith
|
||||
* @author Rodney Waldhoff
|
||||
* @author Paul Jack
|
||||
* @author Stephen Colebourne
|
||||
* @version $Revision$
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AbstractMapTest<K, V> extends AbstractObjectTest {
|
||||
|
||||
|
@ -34,9 +34,7 @@ import org.apache.commons.collections.iterators.AbstractOrderedMapIteratorTest;
|
||||
/**
|
||||
* Abstract test class for {@link OrderedMap} methods and contracts.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AbstractOrderedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -30,9 +30,7 @@ import org.apache.commons.collections.BulkTest;
|
||||
/**
|
||||
* Abstract test class for {@link java.util.SortedMap} methods and contracts.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public abstract class AbstractSortedMapTest<K, V> extends AbstractMapTest<K, V> {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.apache.commons.collections.BulkTest;
|
||||
/**
|
||||
* Tests for the {@link CaseInsensitiveMap} implementation.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Commons-Collections team
|
||||
* @version $Id$
|
||||
*/
|
||||
public class CaseInsensitiveMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -16,8 +16,6 @@
|
||||
*/
|
||||
package org.apache.commons.collections.map;
|
||||
|
||||
import junit.framework.Assert;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
||||
import java.util.Collection;
|
||||
@ -26,10 +24,8 @@ import java.util.Collection;
|
||||
* Extension of {@link AbstractMapTest} for exercising the
|
||||
* {@link CompositeMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Brian McCallister
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
/** used as a flag in MapMutator tests */
|
||||
@ -71,8 +67,8 @@ public class CompositeMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
public void testGet() {
|
||||
final CompositeMap<K, V> map = new CompositeMap<K, V>(buildOne(), buildTwo());
|
||||
Assert.assertEquals("one", map.get("1"));
|
||||
Assert.assertEquals("four", map.get("4"));
|
||||
assertEquals("one", map.get("1"));
|
||||
assertEquals("four", map.get("4"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -29,10 +29,8 @@ import org.apache.commons.collections.functors.ConstantFactory;
|
||||
* Extension of {@link AbstractMapTest} for exercising the
|
||||
* {@link DefaultedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.2
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.2
|
||||
* @version $Id$
|
||||
*/
|
||||
public class DefaultedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -25,10 +25,8 @@ import org.apache.commons.collections.IterableMap;
|
||||
* Extension of {@link AbstractMapTest} for exercising the {@link FixedSizeMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class FixedSizeMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -27,10 +27,8 @@ import org.apache.commons.collections.BulkTest;
|
||||
* Extension of {@link AbstractSortedMapTest} for exercising the {@link FixedSizeSortedMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class FixedSizeSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
|
||||
|
||||
|
@ -32,9 +32,7 @@ import org.apache.commons.collections.iterators.AbstractMapIteratorTest;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class Flat3MapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -22,9 +22,7 @@ import org.apache.commons.collections.BulkTest;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class HashedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -29,9 +29,7 @@ import org.apache.commons.collections.IterableMap;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class IdentityMapTest<K, V> extends AbstractObjectTest {
|
||||
|
||||
|
@ -31,9 +31,7 @@ import org.apache.commons.collections.ResettableIterator;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -30,10 +30,8 @@ import org.junit.Test;
|
||||
* Extension of {@link AbstractMapTest} for exercising the
|
||||
* {@link LazyMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Phil Steitz
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
@SuppressWarnings("boxing")
|
||||
public class LazyMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
@ -33,10 +33,8 @@ import org.junit.Test;
|
||||
* Extension of {@link LazyMapTest} for exercising the
|
||||
* {@link LazySortedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Phil Steitz
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
@SuppressWarnings("boxing")
|
||||
public class LazySortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
|
||||
|
@ -31,9 +31,7 @@ import org.apache.commons.collections.list.AbstractListTest;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class LinkedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -29,10 +29,8 @@ import org.apache.commons.collections.list.AbstractListTest;
|
||||
* Extension of {@link AbstractOrderedMapTest} for exercising the {@link ListOrderedMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.1
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.1
|
||||
* @version $Id$
|
||||
*/
|
||||
public class ListOrderedMap2Test<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -32,11 +32,8 @@ import org.apache.commons.collections.list.AbstractListTest;
|
||||
* Extension of {@link AbstractOrderedMapTest} for exercising the {@link ListOrderedMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @author Matt Benson
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -26,9 +26,7 @@ import org.apache.commons.collections.keyvalue.MultiKey;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class MultiKeyMapTest<K, V> extends AbstractIterableMapTest<MultiKey<? extends K>, V> {
|
||||
|
||||
|
@ -33,9 +33,8 @@ import org.apache.commons.collections.AbstractObjectTest;
|
||||
/**
|
||||
* TestMultiValueMap.
|
||||
*
|
||||
* @author <a href="mailto:jcarman@apache.org">James Carman</a>
|
||||
* @author Stephen Colebourne
|
||||
* @since Commons Collections 3.2
|
||||
* @since 3.2
|
||||
* @version $Id$
|
||||
*/
|
||||
public class MultiValueMapTest<K, V> extends AbstractObjectTest {
|
||||
|
||||
|
@ -28,10 +28,8 @@ import org.apache.commons.collections.functors.TruePredicate;
|
||||
* Extension of {@link AbstractMapTest} for exercising the
|
||||
* {@link PredicatedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Phil Steitz
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class PredicatedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -30,10 +30,8 @@ import org.apache.commons.collections.functors.TruePredicate;
|
||||
* Extension of {@link PredicatedMapTest} for exercising the
|
||||
* {@link PredicatedSortedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Phil Steitz
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class PredicatedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
|
||||
|
||||
|
@ -29,11 +29,7 @@ import org.apache.commons.collections.map.AbstractReferenceMap.ReferenceStrength
|
||||
/**
|
||||
* Tests for ReferenceIdentityMap.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Paul Jack
|
||||
* @author Stephen Colebourne
|
||||
* @author Guilhem Lavaux
|
||||
* @version $Id$
|
||||
*/
|
||||
public class ReferenceIdentityMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -27,10 +27,7 @@ import org.apache.commons.collections.map.AbstractReferenceMap.ReferenceStrength
|
||||
/**
|
||||
* Tests for ReferenceMap.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Paul Jack
|
||||
* @author Guilhem Lavaux
|
||||
* @version $Id$
|
||||
*/
|
||||
public class ReferenceMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.apache.commons.collections.OrderedMap;
|
||||
/**
|
||||
* JUnit tests.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @version $Id$
|
||||
*/
|
||||
public class SingletonMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -24,9 +24,7 @@ import org.apache.commons.collections.BulkTest;
|
||||
* Unit tests.
|
||||
* {@link StaticBucketMap}.
|
||||
*
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Michael A. Smith
|
||||
* @version $Id$
|
||||
*/
|
||||
public class StaticBucketMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -29,10 +29,8 @@ import org.apache.commons.collections.collection.TransformedCollectionTest;
|
||||
* Extension of {@link AbstractMapTest} for exercising the {@link TransformedMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class TransformedMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -32,10 +32,8 @@ import org.apache.commons.collections.collection.TransformedCollectionTest;
|
||||
* Extension of {@link AbstractSortedMapTest} for exercising the {@link TransformedSortedMap}
|
||||
* implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class TransformedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
|
||||
|
||||
|
@ -26,10 +26,8 @@ import org.apache.commons.collections.Unmodifiable;
|
||||
* Extension of {@link AbstractMapTest} for exercising the
|
||||
* {@link UnmodifiableMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Phil Steitz
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class UnmodifiableMapTest<K, V> extends AbstractIterableMapTest<K, V> {
|
||||
|
||||
|
@ -25,10 +25,8 @@ import org.apache.commons.collections.Unmodifiable;
|
||||
* Extension of {@link AbstractOrderedMapTest} for exercising the
|
||||
* {@link UnmodifiableOrderedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class UnmodifiableOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
|
||||
|
||||
|
@ -25,10 +25,8 @@ import org.apache.commons.collections.Unmodifiable;
|
||||
* Extension of {@link AbstractSortedMapTest} for exercising the
|
||||
* {@link UnmodifiableSortedMap} implementation.
|
||||
*
|
||||
* @since Commons Collections 3.0
|
||||
* @version $Revision$
|
||||
*
|
||||
* @author Stephen Colebourne
|
||||
* @since 3.0
|
||||
* @version $Id$
|
||||
*/
|
||||
public class UnmodifiableSortedMapTest<K, V> extends AbstractSortedMapTest<K, V> {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user