@@ -0,0 +1,1046 @@
+package org.pinae.timon.cache.decorator.memcached;%0A%0Aimport org.apache.log4j.Logger;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.pinae.timon.cache.Cache;%0Aimport org.pinae.timon.cache.CacheException;%0Aimport org.pinae.timon.cache.CacheFactory;%0Aimport org.pinae.timon.cache.KVCacheTestCase;%0A%0A/**%0A * %E5%9F%BA%E4%BA%8Ememcached%E7%BC%93%E5%AD%98%E6%B5%8B%E8%AF%95%0A * %0A * @author Huiyugeng%0A *%0A */%0Apublic class MemcachedCacheTest extends KVCacheTestCase %7B%0A%09protected final Logger log = Logger.getLogger(MemcachedCacheTest.class);%0A%0A%09private CacheFactory cacheFactory = CacheFactory.getInstance();%0A%0A%09private Cache cache;%0A%09%0A%09private String memcachedServer = %22localhost:11211%22;%0A%09%0A%09@Before%0A%09public void before() throws CacheException %7B%0A%09%09MemcachedCacheConfiguration config = new MemcachedCacheConfiguration();%0A%09%09%0A%09%09config.setServer(memcachedServer);%0A%09%09%0A%09%09config.setExpire(0);%0A%09%09config.setMaxHeapSize(10);%0A%09%09%0A%09%09this.cache = cacheFactory.createCache(%22testCache%22, config);%0A%09%7D%0A%0A%09@Test%0A%09public void testCache() throws CacheException %7B%0A%09%09super.testBasicCache(cache, false);%0A%09%09cache.close();%0A%09%7D%0A%0A%7D%0A

Add MemcachedCache unit test case