activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1404980 - /activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
Date Fri, 02 Nov 2012 14:42:30 GMT
Author: dejanb
Date: Fri Nov  2 14:42:30 2012
New Revision: 1404980

URL: http://svn.apache.org/viewvc?rev=1404980&view=rev
Log:
amqp - JMSClientTest with browser

Modified:
    activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java

Modified: activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java?rev=1404980&r1=1404979&r2=1404980&view=diff
==============================================================================
--- activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
(original)
+++ activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
Fri Nov  2 14:42:30 2012
@@ -23,6 +23,8 @@ import org.junit.Test;
 
 import javax.jms.*;
 
+import java.util.Enumeration;
+
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 
@@ -44,11 +46,20 @@ public class JMSClientTest extends AmqpT
             msg.setObjectProperty("x", 1);
             p.send(msg);
 //            session.commit();
-            MessageConsumer c = session.createConsumer(queue, "x = 1");
+/*            MessageConsumer c = session.createConsumer(queue, "x = 1");
             Message received = c.receive(2000);
             assertNotNull(received);
             System.out.println("first: " + ((TextMessage)received).getText());
-            System.out.println(received.getJMSRedelivered());
+            System.out.println(received.getJMSRedelivered());*/
+
+
+            QueueBrowser browser = session.createBrowser(queue);
+            Enumeration enumeration = browser.getEnumeration();
+            while (enumeration.hasMoreElements()) {
+
+                System.out.println("BROWSE " + enumeration.nextElement());
+            }
+
 
 //            session.rollback();
 //



Mime
View raw message