1 package org.jacorb.test.notification.util; 2 3 23 24 import junit.framework.Test; 25 import junit.framework.TestSuite; 26 27 import org.jacorb.notification.util.CachingWildcardMap; 28 import org.jacorb.notification.util.WildcardMap; 29 30 33 34 public class CachingWildcardMapTest extends AbstractWildcardMapTest 35 { 36 public WildcardMap newWildcardMap() 37 { 38 return new CachingWildcardMap(); 39 } 40 41 public CachingWildcardMapTest(String name) 42 { 43 super(name); 44 } 45 46 public static Test suite() 47 { 48 return new TestSuite(CachingWildcardMapTest.class); 49 } 50 51 public void testCache() 52 { 53 objectUnderTest_.put("key1", "value1"); 54 assertEquals("value1", objectUnderTest_.getWithExpansion("key1")[0]); 55 assertEquals("value1", objectUnderTest_.getWithExpansion("key1")[0]); 56 } 57 } | Popular Tags |