From cb130f80563ad8e46eee238a9cb2bec70d943e74 Mon Sep 17 00:00:00 2001 From: Henri Yandell Date: Tue, 15 Sep 2009 05:57:29 +0000 Subject: [PATCH] Merging from -r468106:814127 of collections_jdk5_branch - namely where this code was generified; mostly in r738956. Also see the following revisions: ------------------------------------------------------------------------ r740150 | mbenson | 2009-02-02 15:24:00 -0800 (Mon, 02 Feb 2009) | 1 line make all [collections] maps implement IterableMap ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@815127 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/collections/map/TestFixedSizeMap.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/test/org/apache/commons/collections/map/TestFixedSizeMap.java b/src/test/org/apache/commons/collections/map/TestFixedSizeMap.java index 873d88a5c..8ffb22c4d 100644 --- a/src/test/org/apache/commons/collections/map/TestFixedSizeMap.java +++ b/src/test/org/apache/commons/collections/map/TestFixedSizeMap.java @@ -19,6 +19,8 @@ package org.apache.commons.collections.map; import java.util.HashMap; import java.util.Map; +import org.apache.commons.collections.IterableMap; + import junit.framework.Test; import junit.framework.TestSuite; @@ -31,7 +33,7 @@ import junit.framework.TestSuite; * * @author Stephen Colebourne */ -public class TestFixedSizeMap extends AbstractTestMap { +public class TestFixedSizeMap extends AbstractTestIterableMap { public TestFixedSizeMap(String testName) { super(testName); @@ -46,16 +48,16 @@ public class TestFixedSizeMap extends AbstractTestMap { junit.textui.TestRunner.main(testCaseName); } - public Map makeEmptyMap() { - return FixedSizeMap.decorate(new HashMap()); + public IterableMap makeObject() { + return FixedSizeMap.decorate(new HashMap()); } - public Map makeFullMap() { - Map map = new HashMap(); + public IterableMap makeFullMap() { + Map map = new HashMap(); addSampleMappings(map); return FixedSizeMap.decorate(map); } - + public boolean isPutAddSupported() { return false; }