activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1486959 - /activemq/trunk/activemq-amqp/src/test/java/org/apache/activemq/transport/amqp/JMSClientTest.java
Date Tue, 28 May 2013 15:11:38 GMT
Author: tabish
Date: Tue May 28 15:11:38 2013
New Revision: 1486959

URL: http://svn.apache.org/r1486959
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-4559

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=1486959&r1=1486958&r2=1486959&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
Tue May 28 15:11:38 2013
@@ -16,20 +16,27 @@
  */
 package org.apache.activemq.transport.amqp;
 
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+
+import java.util.Enumeration;
+
+import javax.jms.Connection;
+import javax.jms.ExceptionListener;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.MessageConsumer;
+import javax.jms.MessageProducer;
+import javax.jms.QueueBrowser;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+
 import org.apache.activemq.transport.amqp.joram.ActiveMQAdmin;
 import org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl;
 import org.apache.qpid.amqp_1_0.jms.impl.QueueImpl;
 import org.junit.Test;
 import org.objectweb.jtests.jms.framework.TestConfig;
 
-import javax.jms.*;
-
-import java.util.Enumeration;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-
 /**
  * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
  */
@@ -58,7 +65,8 @@ public class JMSClientTest extends AmqpT
 
             MessageConsumer consumer = session.createConsumer(queue);
             Message msg = consumer.receive(TestConfig.TIMEOUT);
-            assertTrue(message instanceof TextMessage);
+            assertNotNull(msg);
+            assertTrue(msg instanceof TextMessage);
         }
         connection.close();
 



Mime
View raw message