1 4 package org.jfox.jndi; 5 6 import javax.naming.Context ; 7 import javax.naming.InitialContext ; 8 9 import junit.framework.TestCase; 10 11 14 15 public class JNDITest extends TestCase { 16 17 private Context ctx; 18 19 20 protected void setUp() throws Exception { 21 super.setUp(); 22 ctx = new InitialContext (); 23 } 24 25 protected void tearDown() throws Exception { 26 super.tearDown(); 27 } 28 29 30 public void testBind() throws Exception { 31 ctx.rebind("test", new String ("Test")); 32 } 33 34 public static void main(String [] args) { 35 36 } 37 } 38 39 | Popular Tags |