*@exception Exception Description of the Exception
*/
public void testSimpleLoad()
throws Exception
{
JCS jcs = JCS.getInstance( "testCache1" );
// ICompositeCacheAttributes cattr = jcs.getCacheAttributes();
// cattr.setMaxObjects( 20002 );
// jcs.setCacheAttributes( cattr );
for ( int i = 0; i <= items; i++ )
{
jcs.put( i + ":key", "data" + i );
}
for ( int i = items; i >= items; i-- )
{
String res = ( String ) jcs.get( i + ":key" );
if ( res == null )
{
this.assertNotNull( "[" + i + ":key] should not be null", res );
}
}
// test removal
jcs.destroy( "300:key" );
assertNull( jcs.get( "300:key" ) );
}