[jboss-cvs] JBossAS SVN: r74978 - trunk/testsuite/src/main/org/jboss/test/spring/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 24 09:28:33 EDT 2008


Author: wolfc
Date: 2008-06-24 09:28:33 -0400 (Tue, 24 Jun 2008)
New Revision: 74978

Modified:
   trunk/testsuite/src/main/org/jboss/test/spring/test/SpringEJBTestCase.java
Log:
Do not override default jndi properties

Modified: trunk/testsuite/src/main/org/jboss/test/spring/test/SpringEJBTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/spring/test/SpringEJBTestCase.java	2008-06-24 13:05:16 UTC (rev 74977)
+++ trunk/testsuite/src/main/org/jboss/test/spring/test/SpringEJBTestCase.java	2008-06-24 13:28:33 UTC (rev 74978)
@@ -21,14 +21,13 @@
 */
 package org.jboss.test.spring.test;
 
-import java.util.Hashtable;
-import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.rmi.PortableRemoteObject;
 
+import junit.framework.Test;
+
 import org.jboss.test.JBossTestCase;
 import org.jboss.test.spring.ejb.SpringBeansManager;
-import junit.framework.Test;
 
 /**
  * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
@@ -47,11 +46,7 @@
 
    public void testEar() throws Exception
    {
-      Hashtable<String, String> env = new Hashtable<String, String>();
-      env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
-      env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
-      env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
-      InitialContext ctx = new InitialContext(env);
+      InitialContext ctx = new InitialContext();
       String ejbName = "spring-ear/" + SpringBeansManager.class.getSimpleName() + "Impl/remote";
       log.info("Excuting lookup: " + ejbName);
       Object result = ctx.lookup(ejbName);




More information about the jboss-cvs-commits mailing list