Author: clebert.suconic(a)jboss.com
Date: 2010-05-10 20:46:42 -0400 (Mon, 10 May 2010)
New Revision: 9223
Modified:
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
Log:
tweak on test
Modified:
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java
===================================================================
---
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-10
23:11:36 UTC (rev 9222)
+++
trunk/tests/joram-tests/src/org/objectweb/jtests/jms/conform/queue/TemporaryQueueTest.java 2010-05-11
00:46:42 UTC (rev 9223)
@@ -18,6 +18,7 @@
import javax.jms.QueueReceiver;
import javax.jms.TemporaryQueue;
import javax.jms.TextMessage;
+import javax.jms.Topic;
import junit.framework.Assert;
import junit.framework.Test;
@@ -51,6 +52,10 @@
receiverConnection.stop();
// we create a temporary queue to receive messages
tempQueue = receiverSession.createTemporaryQueue();
+
+ // someone may consider it silly, but lots of users do this kind of thing
+ assertFalse(tempQueue instanceof Topic);
+
// we recreate the sender because it has been
// already created with a Destination as parameter
sender = senderSession.createSender(null);