1 package org.sapia.regis.cache; 2 3 import java.util.Properties ; 4 5 import org.sapia.regis.RegistryContext; 6 import org.sapia.regis.local.LocalRegistryFactory; 7 8 import junit.framework.TestCase; 9 10 public class CacheRegistryFactoryTest extends TestCase { 11 12 public CacheRegistryFactoryTest(String arg0) { 13 super(arg0); 14 } 15 16 public void testConnect() throws Exception { 17 Properties props = new Properties (); 18 props.setProperty(RegistryContext.FACTORY_CLASS, CacheRegistryFactory.class.getName()); 19 props.setProperty(CacheRegistryFactory.FACTORY_CLASS, LocalRegistryFactory.class.getName()); 20 RegistryContext ctx = new RegistryContext(props); 21 ctx.connect(); 22 } 23 24 25 } 26 | Popular Tags |