[jboss-cvs] JBoss Messaging SVN: r2358 - in projects/jms-integration/src: main/org/jboss/test/jms/integration/tests and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Feb 19 19:23:41 EST 2007


Author: clebert.suconic at jboss.com
Date: 2007-02-19 19:23:41 -0500 (Mon, 19 Feb 2007)
New Revision: 2358

Modified:
   projects/jms-integration/src/etc/deployments/mdb-ejb20-selector/META-INF/jboss.xml
   projects/jms-integration/src/main/org/jboss/test/jms/integration/tests/SimpleMDBWithSelectorTest.java
Log:
Changing test to use singleton JCA to ensure and test order of messages

Modified: projects/jms-integration/src/etc/deployments/mdb-ejb20-selector/META-INF/jboss.xml
===================================================================
--- projects/jms-integration/src/etc/deployments/mdb-ejb20-selector/META-INF/jboss.xml	2007-02-20 00:11:24 UTC (rev 2357)
+++ projects/jms-integration/src/etc/deployments/mdb-ejb20-selector/META-INF/jboss.xml	2007-02-20 00:23:41 UTC (rev 2358)
@@ -7,7 +7,8 @@
       <message-driven>
          <ejb-name>QueueAdapter</ejb-name>
          <destination-jndi-name>queue/testQueue</destination-jndi-name>
-         <configuration-name>Standard Message Driven Bean</configuration-name>
+         <!-- I"m using singleton on this test to guarantee the order -->
+         <configuration-name>Singleton Message Driven Bean</configuration-name>
          <resource-ref>
             <res-ref-name>connectionFactory</res-ref-name>
             <resource-name>connectionFactory</resource-name>

Modified: projects/jms-integration/src/main/org/jboss/test/jms/integration/tests/SimpleMDBWithSelectorTest.java
===================================================================
--- projects/jms-integration/src/main/org/jboss/test/jms/integration/tests/SimpleMDBWithSelectorTest.java	2007-02-20 00:11:24 UTC (rev 2357)
+++ projects/jms-integration/src/main/org/jboss/test/jms/integration/tests/SimpleMDBWithSelectorTest.java	2007-02-20 00:23:41 UTC (rev 2358)
@@ -103,7 +103,7 @@
 
             assertEquals("odd", message.getStringProperty("pair"));
             System.out.println("-----" + message.getText());
-            //assertEquals("reply to message Message " + (messagesReceived*2 + 1), message.getText());
+            assertEquals("reply to message Message " + (messagesReceived*2 + 1), message.getText());
             messagesReceived++;
          }
 




More information about the jboss-cvs-commits mailing list