mirror of https://github.com/apache/activemq.git
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:
parent
52105b6c25
commit
2026e6e831
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue