1 package org.jboss.cache.loader; 2 3 import junit.framework.Test; 4 import junit.framework.TestSuite; 5 import org.jboss.cache.CacheImpl; 6 import org.jboss.cache.config.Configuration; 7 8 14 public class LocalDelegatingCacheLoaderTest extends CacheLoaderTestsBase 15 { 16 CacheImpl delegating_cache; 17 18 protected void configureCache() throws Exception 19 { 20 delegating_cache = new CacheImpl(); 21 delegating_cache.getConfiguration().setCacheMode(Configuration.CacheMode.LOCAL); 22 delegating_cache.create(); 23 delegating_cache.start(); 24 25 cache.getConfiguration().setCacheLoaderConfig(getSingleCacheLoaderConfig("", "org.jboss.cache.loader.LocalDelegatingCacheLoader", "", false, false, false)); 27 28 LocalDelegatingCacheLoader cacheLoader = new LocalDelegatingCacheLoader(delegating_cache); 30 cache.setCacheLoader(cacheLoader); 31 } 32 33 protected void tearDown() throws Exception 34 { 35 super.tearDown(); 36 delegating_cache.stop(); 37 delegating_cache.destroy(); 38 } 39 40 public void testLoadAndStore() throws Exception 41 { 42 } 45 46 public void testPartialLoadAndStore() 47 { 48 } 50 51 public void testBuddyBackupStore() 52 { 53 } 55 56 57 public static Test suite() 58 { 59 return new TestSuite(LocalDelegatingCacheLoaderTest.class); 60 } 61 62 63 public static void main(String [] args) 64 { 65 junit.textui.TestRunner.run(suite()); 66 } 67 68 } 69 | Popular Tags |