/* Open Source Java Caching Service
* Copyright (C) 2002 Frank Karlstr�m
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* The author can be contacted by email: fjankk@users.sourceforge.net
*/
package org.fjank.jcache;
import java.lang.ref.ReferenceQueue;
import junit.framework.TestCase;
/**JUnit test for CacheObjectGroup
* @author Frank Karlstr�m
*/
public class CacheGroupTest extends TestCase {
public static void main(String[] args) {
junit.textui.TestRunner.run(CacheGroupTest.class);
}
/**
* @todo Implement testGet().
*/
public final void testGet() {
//TODO Implement get().
}
/**
* @todo implement testPutObjectCacheObjectObject()
* Class under test for void put(Object, CacheObject, Object)
*/
public final void testPutObjectCacheObjectObject() {
//TODO Implement put().
}
/**@todo implement testPutCacheGroup()
* Class under test for void put(CacheGroup)
*/
public final void testPutCacheGroup() {
//TODO Implement put().
}
/**
* @todo implement testGetAttributes()
*
*/
public final void testGetAttributes() {
//TODO Implement getAttributes().
}
/**@todo implement testReplaceObjectCacheObject()
* Class under test for CacheObject replace(Object, CacheObject)
*/
public final void testReplaceObjectCacheObject() {
//TODO Implement replace().
}
/**@todo implement testReplaceObjectStringCacheObject()
* Class under test for CacheObject replace(Object, String, CacheObject)
*/
public final void testReplaceObjectStringCacheObject() {
//TODO Implement replace().
}
/**
* @todo implement testInvalidate()
*
*/
public final void testInvalidate() {
//TODO Implement invalidate().
}
/**
* @todo implement testDestroy()
*
*/
public final void testDestroy() {
//TODO Implement destroy().
}
/**
* Test for contains.
* @throws Exception if any exceptions occur.
*/
public final void testContains() throws Exception {
ReferenceQueue q = new ReferenceQueue();
CacheGroup group = new CacheGroup("testGroup", new AttributesImpl());
Object obj = new Object();
group.put("testName", new CacheObject("testName", obj, group, null, q), obj);
assertEquals(true, group.contains("testName"));
assertEquals(false, group.contains("testName1"));
}
/**
* @todo implement testRemoveMe()
*
*/
public final void testRemoveMe() {
//TODO Implement removeMe().
}
/**
* @todo implement testGetCurrentSize()
*
*/
public final void testGetCurrentSize() {
//TODO Implement getCurrentSize().
}
/**
* @todo implement testGetGroup()
*
*/
public final void testGetGroup() {
//TODO Implement getGroup().
}
/**
* @todo implement testGetName()
*
*/
public final void testGetName() {
//TODO Implement getName().
}
/**
* @todo implement testGetObjectCount()
*
*/
public final void testGetObjectCount() {
//TODO Implement getObjectCount().
}
/**
* @todo implement testContainsValue()
*
*/
public final void testContainsValue() {
//TODO Implement containsValue().
}
/**
* @todo implement testKeySet()
*
*/
public final void testKeySet() {
//TODO Implement keySet().
}
/**
* @todo implement testValues()
*
*/
public final void testValues() {
//TODO Implement values().
}
/**
* @todo implement testEntrySet()
*
*/
public final void testEntrySet() {
//TODO Implement entrySet().
}
}