[jboss-cvs] JBossAS SVN: r71323 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Mar 26 17:09:44 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-03-26 17:09:44 -0400 (Wed, 26 Mar 2008)
New Revision: 71323

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/test/RetryInterceptorUnitTestCase.java
Log:
[JBAS-5335] Add missing line endings; use proper tmpdir

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/test/RetryInterceptorUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/test/RetryInterceptorUnitTestCase.java	2008-03-26 21:01:25 UTC (rev 71322)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/ejb2/test/RetryInterceptorUnitTestCase.java	2008-03-26 21:09:44 UTC (rev 71323)
@@ -496,23 +496,23 @@
       // on the network. When the RetryCaller runs, it will create a 
       // special classloader that will pick up this file
       if (customJndiDir == null)
-         customJndiDir = new File(System.getProperty("java.io.tempdir"), 
+         customJndiDir = new File(System.getProperty("java.io.tmpdir"), 
                                   "retry-int-test");
       if (!customJndiDir.exists())
          customJndiDir.mkdir();
       customJndiProperties = new File(customJndiDir, "jndi.properties");
       FileOutputStream fos = new FileOutputStream(customJndiProperties);
       OutputStreamWriter writer = new OutputStreamWriter(fos);
-      writer.write("jnp.discoveryTTL=" + DISCOVERY_TTL + "\n");
+      writer.write(NamingContext.JNP_DISCOVERY_TTL + "=" + DISCOVERY_TTL + "\n");
       if (DISCOVERY_GROUP != null && "".equals(DISCOVERY_GROUP) == false)
       {
          // The server isn't listening on the std multicast address
-         writer.write("jnp.discoveryGroup=" + DISCOVERY_GROUP);
+         writer.write(NamingContext.JNP_DISCOVERY_GROUP + "=" + DISCOVERY_GROUP + "\n");
       }
       if (DISCOVERY_PARTITION != null && "".equals(DISCOVERY_PARTITION) == false)
       {
          // Limit to the partition this test environment is using
-         writer.write(NamingContext.JNP_PARTITION_NAME + "=" + DISCOVERY_PARTITION);
+         writer.write(NamingContext.JNP_PARTITION_NAME + "=" + DISCOVERY_PARTITION + "\n");
       }
       writer.close();
       getLog().debug("Created custom jndi.properties at " + customJndiProperties + 




More information about the jboss-cvs-commits mailing list