activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1405137 - in /activemq/trunk/activemq-amqp/src: main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java
Date Fri, 02 Nov 2012 20:13:08 GMT
Author: chirino
Date: Fri Nov  2 20:13:08 2012
New Revision: 1405137

URL: http://svn.apache.org/viewvc?rev=1405137&view=rev
Log:
Update Joram test suite so that it's easier to enable the tests that are working against QPID
0.19-SNAPSHOT.

Modified:
    activemq/trunk/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
    activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java

Modified: activemq/trunk/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java?rev=1405137&r1=1405136&r2=1405137&view=diff
==============================================================================
--- activemq/trunk/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
(original)
+++ activemq/trunk/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpProtocolConverter.java
Fri Nov  2 20:13:08 2012
@@ -888,7 +888,7 @@ class AmqpProtocolConverter {
         consumerInfo.setDestination(dest);
         consumerInfo.setPrefetchSize(100);
         consumerInfo.setDispatchAsync(true);
-        if( source.getDistributionMode() == COPY) {
+        if( source.getDistributionMode() == COPY && dest.isQueue() ) {
             consumerInfo.setBrowser(true);
         }
 

Modified: activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java?rev=1405137&r1=1405136&r2=1405137&view=diff
==============================================================================
--- activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java
(original)
+++ activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/joram/JoramJmsTest.java
Fri Nov  2 20:13:08 2012
@@ -19,6 +19,7 @@ package org.apache.activemq.transport.am
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
+import org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl;
 import org.objectweb.jtests.jms.conform.connection.ConnectionTest;
 import org.objectweb.jtests.jms.conform.connection.TopicConnectionTest;
 import org.objectweb.jtests.jms.conform.message.MessageBodyTest;
@@ -38,6 +39,10 @@ import org.objectweb.jtests.jms.conform.
 import org.objectweb.jtests.jms.conform.session.UnifiedSessionTest;
 import org.objectweb.jtests.jms.conform.topic.TemporaryTopicTest;
 
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.JMSException;
+
 /**
  * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
  */
@@ -46,6 +51,25 @@ public class JoramJmsTest extends TestCa
     public static Test suite() {
         TestSuite suite = new TestSuite();
 
+        // TODO: Fix these tests..
+        if (false) {
+            // Fails due to durable subs not being implemented.
+            suite.addTestSuite(TopicSessionTest.class);
+            // Fails due to https://issues.apache.org/jira/browse/PROTON-110 and DestinationImpl
vs QueueImpl mapping issues
+            suite.addTestSuite(MessageHeaderTest.class);
+            // Fails due to inconsistent Message mapping in the JMS client.
+            suite.addTestSuite(MessageTypeTest.class);
+            suite.addTestSuite(QueueBrowserTest.class);
+
+        }
+
+        // TODO: enable once QPID 0.19 is released
+        if(false) {
+            suite.addTestSuite(UnifiedSessionTest.class);
+            suite.addTestSuite(TemporaryTopicTest.class);
+            suite.addTestSuite(TopicConnectionTest.class);
+        }
+
         // Passing tests
         suite.addTestSuite(SelectorSyntaxTest.class);
         suite.addTestSuite(QueueSessionTest.class);
@@ -59,24 +83,6 @@ public class JoramJmsTest extends TestCa
         suite.addTestSuite(MessagePropertyConversionTest.class);
         suite.addTestSuite(MessagePropertyTest.class);
 
-        if (false ) {
-
-// TODO: Fails due to https://issues.apache.org/jira/browse/PROTON-110 and DestinationImpl
vs QueueImpl mapping issues
-        suite.addTestSuite(MessageHeaderTest.class);
-// TODO: Fails due to JMS client setup browser before getEnumeration() gets called.
-        suite.addTestSuite(QueueBrowserTest.class);
-// TODO: Should work with qpid 0.19-SNAPSHOT when patch for https://issues.apache.org/jira/browse/QPID-4409
-        suite.addTestSuite(UnifiedSessionTest.class);
-// TODO: Fails due to inconsistent ObjectMessage mapping in the JMS client.
-        suite.addTestSuite(MessageTypeTest.class);
-//TODO: Should work with qpid 0.19-SNAPSHOT
-        suite.addTestSuite(TemporaryTopicTest.class);
-// TODO: Should work with qpid 0.19-SNAPSHOT when patch for https://issues.apache.org/jira/browse/QPID-4408
is applied
-        suite.addTestSuite(TopicConnectionTest.class);
-        suite.addTestSuite(TopicSessionTest.class);
-
-
-        }
         return suite;
     }
 



Mime
View raw message