activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-5621
Date Mon, 20 Apr 2015 16:41:00 GMT
Repository: activemq
Updated Branches:
  refs/heads/master a4fbe7087 -> 514496eba


https://issues.apache.org/jira/browse/AMQ-5621

Fix test not using the parameterized delivery mode value but using
Session.AUTOACKNOWLEDGE as the delivery mode value instead.  

Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/514496eb
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/514496eb
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/514496eb

Branch: refs/heads/master
Commit: 514496eba9a6434f5a272ca5b16554f54333f456
Parents: a4fbe70
Author: Timothy Bish <tabish121@gmail.com>
Authored: Mon Apr 20 12:40:42 2015 -0400
Committer: Timothy Bish <tabish121@gmail.com>
Committed: Mon Apr 20 12:40:42 2015 -0400

----------------------------------------------------------------------
 .../src/test/java/org/apache/activemq/JMSMessageTest.java      | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/514496eb/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
index 5cc279c..a22e5e9 100755
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/JMSMessageTest.java
@@ -515,16 +515,15 @@ public class JMSMessageTest extends JmsTestSupport {
             message.setStringProperty("test", "value");
             long timeToLive = 10000L;
             long start = System.currentTimeMillis();
-            producer.send(message, Session.AUTO_ACKNOWLEDGE, 7, timeToLive);
+            producer.send(message, deliveryMode, 7, timeToLive);
             long end = System.currentTimeMillis();
 
-
             //validate jms spec 1.1 section 3.4.11 table 3.1
             // JMSDestination, JMSDeliveryMode,  JMSExpiration, JMSPriority, JMSMessageID,
and JMSTimestamp
             //must be set by sending a message.
 
             assertNotNull(message.getJMSDestination());
-            assertEquals(Session.AUTO_ACKNOWLEDGE, message.getJMSDeliveryMode());
+            assertEquals(deliveryMode, message.getJMSDeliveryMode());
             assertTrue(start  + timeToLive <= message.getJMSExpiration());
             assertTrue(end + timeToLive >= message.getJMSExpiration());
             assertEquals(7, message.getJMSPriority());
@@ -543,5 +542,4 @@ public class JMSMessageTest extends JmsTestSupport {
 
         assertNull(consumer.receiveNoWait());
     }
-
 }


Mime
View raw message