From 2026e6e83187b35cf79bf5ee5ddfd2bdc4b23310 Mon Sep 17 00:00:00 2001 From: James Strachan Date: Thu, 29 Jun 2006 12:14:28 +0000 Subject: [PATCH] added extra test case from userlist git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418022 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/selector/SelectorTest.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java b/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java index 9318ef01ce..539d1f2a59 100755 --- a/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java +++ b/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java @@ -69,6 +69,13 @@ public class SelectorTest extends TestCase { 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 {