git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1486959 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-05-28 15:11:38 +00:00
parent b62648b8d7
commit 0766a18953
1 changed files with 17 additions and 9 deletions

View File

@ -16,20 +16,27 @@
*/ */
package org.apache.activemq.transport.amqp; 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.activemq.transport.amqp.joram.ActiveMQAdmin;
import org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl; import org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl;
import org.apache.qpid.amqp_1_0.jms.impl.QueueImpl; import org.apache.qpid.amqp_1_0.jms.impl.QueueImpl;
import org.junit.Test; import org.junit.Test;
import org.objectweb.jtests.jms.framework.TestConfig; 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> * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
*/ */
@ -58,7 +65,8 @@ public class JMSClientTest extends AmqpTestSupport {
MessageConsumer consumer = session.createConsumer(queue); MessageConsumer consumer = session.createConsumer(queue);
Message msg = consumer.receive(TestConfig.TIMEOUT); Message msg = consumer.receive(TestConfig.TIMEOUT);
assertTrue(message instanceof TextMessage); assertNotNull(msg);
assertTrue(msg instanceof TextMessage);
} }
connection.close(); connection.close();