KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > cache > store > test > AbstractCacheStoreTestCase


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.store.test;
9
10 import org.apache.avalon.excalibur.cache.CacheStore;
11 import junit.framework.TestCase;
12
13 /**
14  * TestCase for CacheStore.
15  *
16  * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a>
17  */

18 public class AbstractCacheStoreTestCase
19     extends TestCase
20 {
21     protected CacheStore m_store;
22
23     public AbstractCacheStoreTestCase( final String JavaDoc name )
24     {
25         super( name );
26     }
27
28     public void testNullValue()
29     {
30         m_store.put( "KEY", null );
31         assertTrue( m_store.containsKey( "KEY" ) );
32         assertEquals( 1, m_store.size() );
33     }
34 }
35
Popular Tags