mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-1112 - test both values of optimizedDispatch
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@812217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8d9f47aa48
commit
f7804bda6c
|
@ -49,6 +49,7 @@ public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport {
|
|||
Session session;
|
||||
MessageProducer producer;
|
||||
public ActiveMQDestination destination = new ActiveMQQueue("test");
|
||||
public boolean optimizedDispatch = true;
|
||||
|
||||
public static Test suite() {
|
||||
return suite(ExpiredMessagesWithNoConsumerTest.class);
|
||||
|
@ -75,8 +76,7 @@ public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport {
|
|||
|
||||
PolicyMap policyMap = new PolicyMap();
|
||||
PolicyEntry defaultEntry = new PolicyEntry();
|
||||
// TODO Optimize dispatch makes this test hang
|
||||
defaultEntry.setOptimizedDispatch(true);
|
||||
defaultEntry.setOptimizedDispatch(optimizedDispatch );
|
||||
defaultEntry.setExpireMessagesPeriod(100);
|
||||
defaultEntry.setMaxExpirePageSize(800);
|
||||
|
||||
|
@ -94,6 +94,10 @@ public class ExpiredMessagesWithNoConsumerTest extends CombinationTestSupport {
|
|||
broker.waitUntilStarted();
|
||||
}
|
||||
|
||||
public void initCombosForTestExpiredMessagesWithNoConsumer() {
|
||||
addCombinationValues("optimizedDispatch", new Object[] {Boolean.TRUE, Boolean.FALSE});
|
||||
}
|
||||
|
||||
public void testExpiredMessagesWithNoConsumer() throws Exception {
|
||||
|
||||
createBrokerWithMemoryLimit();
|
||||
|
|
Loading…
Reference in New Issue