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 19 public class JDBCCacheLoaderTest 20 extends CacheLoaderTestsBase 21 { 22 23 protected void configureCache() throws Exception 24 { 25 cache.setCacheLoaderClass("org.jboss.cache.loader.JDBCCacheLoader"); 26 Properties props=new Properties (); 27 props.setProperty("cache.jdbc.driver", "com.mysql.jdbc.Driver"); 29 props.setProperty("cache.jdbc.url", "jdbc:mysql://localhost:3306/jbossdb"); 30 props.setProperty("cache.jdbc.user", "root"); 31 props.setProperty("cache.jdbc.password", ""); 32 cache.setCacheLoaderConfig(props); 33 } 34 35 public static Test suite() 36 { 37 return new TestSuite(JDBCCacheLoaderTest.class); 38 } 39 } 40 | Popular Tags |