1 7 package org.jboss.cache.tests; 8 9 import junit.framework.Test; 10 import junit.framework.TestSuite; 11 12 import java.util.Properties ; 13 14 20 public class FileCacheLoaderTest extends CacheLoaderTestsBase { 21 22 23 protected void configureCache() throws Exception { 24 cache.setCacheLoaderClass("org.jboss.cache.loader.FileCacheLoader"); 25 Properties props=new Properties (); 26 props.setProperty("location", "c:\\tmp"); 27 cache.setCacheLoaderConfig(props); 28 } 29 30 31 32 33 public static Test suite() { 34 return new TestSuite(FileCacheLoaderTest.class); 35 } 36 37 38 public static void main(String [] args) { 39 junit.textui.TestRunner.run(suite()); 40 } 41 42 } 43 | Popular Tags |