1 8 package org.apache.avalon.excalibur.cache.test; 9 10 import org.apache.avalon.excalibur.cache.Cache; 11 import junit.framework.TestCase; 12 13 18 public class AbstractCacheTestCase 19 extends TestCase 20 { 21 protected Cache m_cache; 22 23 public AbstractCacheTestCase( final String name ) 24 { 25 super( name ); 26 } 27 28 public void testNullValue() 29 { 30 m_cache.put( "KEY", null ); 31 assertTrue( m_cache.containsKey( "KEY" ) ); 32 assertEquals( 1, m_cache.size() ); 33 } 34 } 35 | Popular Tags |