KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > jndi > JNDITest


1 /*
2  * Copyright (c) 2004 Your Corporation. All Rights Reserved.
3  */

4 package org.jfox.jndi;
5
6 import javax.naming.Context JavaDoc;
7 import javax.naming.InitialContext JavaDoc;
8
9 import junit.framework.TestCase;
10
11 /**
12  * @author <a HREF="mailto:yy.young@gmail.com">Young Yang</a>
13  */

14
15 public class JNDITest extends TestCase {
16
17     private Context JavaDoc ctx;
18
19
20     protected void setUp() throws Exception JavaDoc {
21         super.setUp();
22         ctx = new InitialContext JavaDoc();
23     }
24
25     protected void tearDown() throws Exception JavaDoc {
26         super.tearDown();
27     }
28
29
30     public void testBind() throws Exception JavaDoc {
31         ctx.rebind("test", new String JavaDoc("Test"));
32     }
33
34     public static void main(String JavaDoc[] args) {
35
36     }
37 }
38
39
Popular Tags