activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r418022 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java
Date Thu, 29 Jun 2006 12:14:29 GMT
Author: jstrachan
Date: Thu Jun 29 05:14:28 2006
New Revision: 418022

URL: http://svn.apache.org/viewvc?rev=418022&view=rev
Log:
added extra test case from userlist

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java?rev=418022&r1=418021&r2=418022&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java
Thu Jun 29 05:14:28 2006
@@ -69,6 +69,13 @@
         
         assertSelector(message, "JMSMessageID = 'id:test:1:1:1:1'", true);
         assertSelector(message, "JMSMessageID = 'id:not-test:1:1:1:1'", false);
+        
+        message = createMessage();
+        message.setJMSType("1001");
+        
+        assertSelector(message, "JMSType='1001'", true);
+        assertSelector(message, "JMSType='1001' OR JMSType='1002'", true);
+        assertSelector(message, "JMSType = 'crap'", false);
     }
     
     public void testBasicSelectors() throws Exception {



Mime
View raw message