KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > regis > cache > CacheRegistryFactoryTest


1 package org.sapia.regis.cache;
2
3 import java.util.Properties JavaDoc;
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 JavaDoc arg0) {
13     super(arg0);
14   }
15   
16   public void testConnect() throws Exception JavaDoc{
17     Properties JavaDoc props = new Properties JavaDoc();
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