1 16 package org.apache.commons.collections.map; 17 18 import java.util.HashMap ; 19 import java.util.Map ; 20 21 import junit.framework.Test; 22 import junit.framework.TestSuite; 23 24 33 public class TestFixedSizeMap extends AbstractTestMap { 34 35 public TestFixedSizeMap(String testName) { 36 super(testName); 37 } 38 39 public static Test suite() { 40 return new TestSuite(TestFixedSizeMap.class); 41 } 42 43 public static void main(String args[]) { 44 String [] testCaseName = { TestFixedSizeMap.class.getName()}; 45 junit.textui.TestRunner.main(testCaseName); 46 } 47 48 public Map makeEmptyMap() { 49 return FixedSizeMap.decorate(new HashMap ()); 50 } 51 52 public Map makeFullMap() { 53 Map map = new HashMap (); 54 addSampleMappings(map); 55 return FixedSizeMap.decorate(map); 56 } 57 58 public boolean isPutAddSupported() { 59 return false; 60 } 61 62 public boolean isRemoveSupported() { 63 return false; 64 } 65 66 public String getCompatibilityVersion() { 67 return "3.1"; 68 } 69 70 } 81 | Popular Tags |