added extra test case from userlist

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418022 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-06-29 12:14:28 +00:00
parent 52105b6c25
commit 2026e6e831
1 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,13 @@ public class SelectorTest extends TestCase {
assertSelector(message, "JMSMessageID = 'id:test:1:1:1:1'", true); assertSelector(message, "JMSMessageID = 'id:test:1:1:1:1'", true);
assertSelector(message, "JMSMessageID = 'id:not-test:1:1:1:1'", false); 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 { public void testBasicSelectors() throws Exception {