[hornetq-commits] JBoss hornetq SVN: r11432 - branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/ra.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Sep 26 23:36:02 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-09-26 23:36:01 -0400 (Mon, 26 Sep 2011)
New Revision: 11432

Modified:
   branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/ra/HornetQResourceAdapterConfigTest.java
Log:
fixing a test

Modified: branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/ra/HornetQResourceAdapterConfigTest.java
===================================================================
--- branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/ra/HornetQResourceAdapterConfigTest.java	2011-09-27 03:17:15 UTC (rev 11431)
+++ branches/Branch_2_2_EAP/tests/src/org/hornetq/tests/unit/ra/HornetQResourceAdapterConfigTest.java	2011-09-27 03:36:01 UTC (rev 11432)
@@ -273,6 +273,18 @@
          "         <config-property-type>long</config-property-type>\n" +
          "         <config-property-value></config-property-value>\n" +
          "      </config-property>\n" +
+         "      <config-property>" + 
+         "         <description></description>" + 
+         "         <config-property-name>TransactionManagerLocatorMethod</config-property-name>" + 
+         "         <config-property-type>java.lang.String</config-property-type>" + 
+         "         <config-property-value></config-property-value>" + 
+         "      </config-property>" + 
+         "      <config-property>" + 
+         "         <description></description>" + 
+         "         <config-property-name>TransactionManagerLocatorClass</config-property-name>" + 
+         "         <config-property-type>java.lang.String</config-property-type>" + 
+         "         <config-property-value></config-property-value>" + 
+         "      </config-property>" + 
          "      <config-property>\n" +
          "         <description>How many attempts should be made when connecting the MDB</description>\n" +
          "         <config-property-name>SetupAttempts</config-property-name>\n" +
@@ -323,14 +335,15 @@
       if(!methodList.isEmpty())
       {
          StringBuffer newConfig = new StringBuffer(commentedOutConfigs);
+         newConfig.append("\n");
          for (Method method : methodList.values())
          {
-            newConfig.append("      <config-property>\n");
-            newConfig.append("         <description>***add***</description>\n");
-            newConfig.append("         <config-property-name>").append(method.getName().substring(3)).append("</config-property-name>\n");
-            newConfig.append("         <config-property-type>").append(method.getParameterTypes()[0].getName()).append("</config-property-type>\n");
-            newConfig.append("         <config-property-value></config-property-value>\n");
-            newConfig.append("      </config-property>\n");
+            newConfig.append("\"      <config-property>\" + \n");
+            newConfig.append("\"         <description>***add***</description>\" + \n");
+            newConfig.append("\"         <config-property-name>").append(method.getName().substring(3)).append("</config-property-name>\" + \n");
+            newConfig.append("\"         <config-property-type>").append(method.getParameterTypes()[0].getName()).append("</config-property-type>\" + \n");
+            newConfig.append("\"         <config-property-value></config-property-value>\" + \n");
+            newConfig.append("\"      </config-property>\" + \n");
          }
          System.out.println(newConfig);
          fail("methods not shown please see previous and add");



More information about the hornetq-commits mailing list