[jboss-cvs] JBossAS SVN: r108024 - branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/clusteredentity/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 7 15:41:30 EDT 2010


Author: pferraro
Date: 2010-09-07 15:41:29 -0400 (Tue, 07 Sep 2010)
New Revision: 108024

Modified:
   branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/clusteredentity/test/EntityClassloaderTestBase.java
Log:
Fix region name.

Modified: branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/clusteredentity/test/EntityClassloaderTestBase.java
===================================================================
--- branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/clusteredentity/test/EntityClassloaderTestBase.java	2010-09-07 19:36:28 UTC (rev 108023)
+++ branches/infinispan-int/testsuite/src/main/org/jboss/test/cluster/defaultcfg/clusteredentity/test/EntityClassloaderTestBase.java	2010-09-07 19:41:29 UTC (rev 108024)
@@ -80,18 +80,18 @@
    
    protected EntityQueryTest getEntityQueryTest(String nodeJNDIAddress) throws Exception
    {
-      Properties prop1 = new Properties();
-      prop1.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
-      prop1.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
-      prop1.put("java.naming.provider.url", "jnp://" + nodeJNDIAddress + ":1099");
+      Properties prop = new Properties();
+      prop.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
+      prop.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
+      prop.put("java.naming.provider.url", "jnp://" + nodeJNDIAddress + ":1099");
    
       log.info("===== Naming properties for " + nodeJNDIAddress + ": ");
-      log.info(prop1);
+      log.info(prop);
       log.info("Create InitialContext for " + nodeJNDIAddress);
-      InitialContext ctx1 = new InitialContext(prop1);
+      InitialContext ctx = new InitialContext(prop);
    
       log.info("Lookup sfsb from " + nodeJNDIAddress);
-      EntityQueryTest eqt = (EntityQueryTest)ctx1.lookup("EntityQueryTestBean/remote");
+      EntityQueryTest eqt = (EntityQueryTest) ctx.lookup("EntityQueryTestBean/remote");
       eqt.getCache(isOptimistic());
       
       return eqt;
@@ -335,7 +335,7 @@
    protected String createRegionName(String noPrefix)
    {
       String prefix = createCacheRegionPrefix(getEarName(), getJarName(), getPersistenceUnitName());
-      return "/" + prefix + "/" + noPrefix.replace('.', '/');
+      return prefix + "." + noPrefix;
    }
             
    protected String getEarName()



More information about the jboss-cvs-commits mailing list