1 16 package org.apache.commons.collections.map; 17 18 import java.util.Map ; 19 import java.util.SortedMap ; 20 import java.util.TreeMap ; 21 22 import junit.framework.Test; 23 24 import org.apache.commons.collections.BulkTest; 25 26 35 public class TestFixedSizeSortedMap extends AbstractTestSortedMap { 36 37 public TestFixedSizeSortedMap(String testName) { 38 super(testName); 39 } 40 41 public static Test suite() { 42 return BulkTest.makeSuite(TestFixedSizeSortedMap.class); 43 } 44 45 public static void main(String args[]) { 46 String [] testCaseName = { TestFixedSizeSortedMap.class.getName()}; 47 junit.textui.TestRunner.main(testCaseName); 48 } 49 50 public Map makeEmptyMap() { 52 return FixedSizeSortedMap.decorate(new TreeMap ()); 53 } 54 55 public Map makeFullMap() { 56 SortedMap map = new TreeMap (); 57 addSampleMappings(map); 58 return FixedSizeSortedMap.decorate(map); 59 } 60 61 public boolean isSubMapViewsSerializable() { 62 return false; 64 } 65 66 public boolean isPutAddSupported() { 67 return false; 68 } 69 70 public boolean isRemoveSupported() { 71 return false; 72 } 73 74 public String getCompatibilityVersion() { 76 return "3.1"; 77 } 78 79 } 90 | Popular Tags |