mirror of https://github.com/apache/activemq.git
Add test case for: https://issues.apache.org/jira/browse/AMQ-2528
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1142097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
af1b2328ee
commit
7be63f21b1
|
@ -143,6 +143,24 @@ public class JmsTopicSelectorTest extends TestSupport {
|
|||
|
||||
}
|
||||
|
||||
public void testEmptyPropertySelector() throws Exception {
|
||||
int remaining = 5;
|
||||
Message message = null;
|
||||
consumer = createConsumer("");
|
||||
sendMessages();
|
||||
while (true) {
|
||||
message = consumer.receive(1000);
|
||||
if (message == null) {
|
||||
break;
|
||||
}
|
||||
|
||||
remaining--;
|
||||
}
|
||||
assertEquals(remaining, 0);
|
||||
consumer.close();
|
||||
consumeMessages(remaining);
|
||||
}
|
||||
|
||||
public void testPropertySelector() throws Exception {
|
||||
int remaining = 5;
|
||||
Message message = null;
|
||||
|
|
Loading…
Reference in New Issue