1 package org.jboss.cache.tests.loader; 2 3 import junit.framework.Test; 4 import junit.framework.TestSuite; 5 6 import java.util.Properties ; 7 8 14 public class FileCacheLoaderTest extends CacheLoaderTestsBase { 15 16 17 protected void configureCache() throws Exception { 18 String tmp_location=System.getProperty("java.io.tmpdir", "c:\\tmp"); 19 cache.setCacheLoaderClass("org.jboss.cache.loader.FileCacheLoader"); 20 Properties props=new Properties (); 21 props.setProperty("location", tmp_location); 22 System.out.println("using temp location " + tmp_location); 23 cache.setCacheLoaderConfig(props); 24 } 25 26 27 28 29 public static Test suite() { 30 return new TestSuite(FileCacheLoaderTest.class); 31 } 32 33 34 public static void main(String [] args) { 35 junit.textui.TestRunner.run(suite()); 36 } 37 38 } 39 | Popular Tags |