[jboss-cvs] JBossAS SVN: r80628 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/ustxsticky/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Nov 7 03:34:52 EST 2008
Author: galder.zamarreno at jboss.com
Date: 2008-11-07 03:34:52 -0500 (Fri, 07 Nov 2008)
New Revision: 80628
Modified:
trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/ustxsticky/test/UserTransactionStickyUnitTestCase.java
Log:
[JBAS-6056] [JBAS-6153] Fixed test to use org.jboss.naming.NamingContextFactory instead of org.jnp.interfaces.NamingContextFactor.
Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/ustxsticky/test/UserTransactionStickyUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/ustxsticky/test/UserTransactionStickyUnitTestCase.java 2008-11-07 07:25:45 UTC (rev 80627)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/ustxsticky/test/UserTransactionStickyUnitTestCase.java 2008-11-07 08:34:52 UTC (rev 80628)
@@ -34,7 +34,6 @@
import org.jboss.test.JBossClusteredTestCase;
import org.jboss.test.cluster.ejb2.ustxsticky.UserTransactionStickyHome;
import org.jboss.test.cluster.ejb2.ustxsticky.UserTransactionStickyRemote;
-import org.jnp.interfaces.NamingContext;
/**
* UserTransactionStickyTestCase.
@@ -71,7 +70,7 @@
// Connect to the server0 JNDI
String[] urls = getNamingURLs();
Properties env1 = new Properties();
- env1.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
+ env1.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");
env1.setProperty(Context.PROVIDER_URL, urls[0]);
ctx = new InitialContext(env1);
@@ -107,21 +106,21 @@
}
}
- private Properties getDefaultProperties()
- {
- Properties p = new Properties();
- p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
- p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
- return p;
- }
+// private Properties getDefaultProperties()
+// {
+// Properties p = new Properties();
+// p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
+// p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
+// return p;
+// }
+//
+// private Context createDefaultPartitionContext() throws Exception
+// {
+// Properties p = getDefaultProperties();
+// p.put(NamingContext.JNP_PARTITION_NAME, "DefaultPartition"); // partition name.
+// return new InitialContext(p);
+// }
- private Context createDefaultPartitionContext() throws Exception
- {
- Properties p = getDefaultProperties();
- p.put(NamingContext.JNP_PARTITION_NAME, "DefaultPartition"); // partition name.
- return new InitialContext(p);
- }
-
private static void log(Object message)
{
log.info(message);
More information about the jboss-cvs-commits
mailing list