1 5 package org.exoplatform.services.cache.test; 6 7 import org.exoplatform.services.cache.CacheService; 8 import org.exoplatform.services.cache.ExoCache; 9 import org.exoplatform.test.BasicTestCase; 10 17 public class BaseCacheTest extends BasicTestCase { 18 19 CacheService service_ ; 20 21 public BaseCacheTest(String name) { 22 super(name); 23 } 24 25 public void testCacheService() throws Exception { 26 ExoCache cache = service_.getCacheInstance("exo") ; 27 cache.put("test", "this is a test") ; 28 String ret = (String ) cache.get("test"); 29 assertTrue("Return value from cache is not null", ret != null) ; 30 31 } 32 33 protected String getDescription() { 34 return "Test Cache Service" ; 35 } 36 } 37 | Popular Tags |