KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > naming > ServiceLocatorTest


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

14 public class ServiceLocatorTest extends TestCase {
15   public ServiceLocatorTest(String JavaDoc name) {
16     super(name);
17   }
18
19   public void testRegister() throws Exception JavaDoc {
20     System.setProperty("ubik.rmi.naming.service.handler.test",
21       "org.sapia.ubik.rmi.naming.TestHandler");
22
23     ServiceLocator.lookup("test://localhost:80/test");
24   }
25 }
26
Popular Tags