git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1142097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2011-07-01 21:23:48 +00:00
parent af1b2328ee
commit 7be63f21b1
1 changed files with 19 additions and 1 deletions

View File

@ -32,7 +32,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
*
*/
public class JmsTopicSelectorTest extends TestSupport {
private static final Logger LOG = LoggerFactory.getLogger(JmsTopicSelectorTest.class);
@ -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;