KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > cache > test > AbstractCacheTestCase


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.cache.test;
9
10 import org.apache.avalon.excalibur.cache.Cache;
11 import junit.framework.TestCase;
12
13 /**
14  * TestCase for Cache.
15  *
16  * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a>
17  */

18 public class AbstractCacheTestCase
19     extends TestCase
20 {
21     protected Cache m_cache;
22
23     public AbstractCacheTestCase( final String JavaDoc 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