KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > archie > jndi > DefaultContextFactoryTest


1 package org.sapia.archie.jndi;
2
3 import java.util.Properties JavaDoc;
4
5 import javax.naming.Context JavaDoc;
6 import javax.naming.InitialContext JavaDoc;
7
8 import junit.framework.TestCase;
9
10 /**
11  * @author Yanick Duchesne
12  *
13  * <dl>
14  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2004 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
15  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
16  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
17  * </dl>
18  */

19 public class DefaultContextFactoryTest extends TestCase{
20     
21     public DefaultContextFactoryTest(String JavaDoc name){
22         super(name);
23     }
24     
25     public void testCreate() throws Exception JavaDoc{
26         Properties JavaDoc props = new Properties JavaDoc();
27         props.setProperty(Context.INITIAL_CONTEXT_FACTORY, DefaultContextFactory.class.getName());
28         InitialContext JavaDoc ctx = new InitialContext JavaDoc(props);
29     }
30
31 }
32
Popular Tags