mirror of https://github.com/apache/activemq.git
re-enabled some tests and tinkered to make a frew work better
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@516031 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
222dd260e6
commit
544ffe9dce
|
@ -214,11 +214,11 @@
|
|||
<exclude>**/MultipleTestsWithSpringXBeanFactoryBeanTest.*</exclude>
|
||||
|
||||
<!-- these seem to fail only in m2 -->
|
||||
<exclude>**/TransactedTopicMasterSlaveTest.*</exclude>
|
||||
<!--<exclude>**/TransactedTopicMasterSlaveTest.*</exclude>-->
|
||||
|
||||
<!-- Kaha in flux - removing tests -->
|
||||
<exclude>**/KahaXARecoveryBrokerTest.*</exclude>
|
||||
<exclude>**/KahaRecoveryBrokerTest.*</exclude>
|
||||
<!--<exclude>**/KahaXARecoveryBrokerTest.*</exclude>-->
|
||||
<!--<exclude>**/KahaRecoveryBrokerTest.*</exclude>-->
|
||||
|
||||
<!-- Multicast and UDP based tests fail on GBuild -->
|
||||
<exclude>**/PeerTransportTest.*</exclude>
|
||||
|
@ -238,10 +238,6 @@
|
|||
<exclude>**/UdpSendReceiveWithTwoConnectionsTest.*</exclude>
|
||||
<exclude>**/UdpSendReceiveWithTwoConnectionsAndLargeMessagesTest.*</exclude>
|
||||
|
||||
<!-- http://issues.apache.org/activemq/browse/AMQ-724 -->
|
||||
<exclude>**/StompSubscriptionRemoveTest.*</exclude>
|
||||
|
||||
|
||||
<!-- m2 tests failing since move from assembly -->
|
||||
<exclude>**/TwoBrokerMessageNotSentToRemoteWhenNoConsumerTest.*</exclude>
|
||||
<exclude>**/TwoBrokerQueueClientsReconnectTest.*</exclude>
|
||||
|
@ -257,20 +253,18 @@
|
|||
|
||||
<!-- This test only works on machines which have ssh propertly configured -->
|
||||
<exclude>**/SSHTunnelNetworkReconnectTest.*</exclude>
|
||||
|
||||
<!-- TODO need to get the JUnit test configured to create SSL sockets nicely via system properties -->
|
||||
<exclude>**/StompSslTest.*</exclude>
|
||||
|
||||
<!-- see http://issues.apache.org/activemq/browse/AMQ-826 -->
|
||||
<!-- have not yet figured out the way to configure ApacheDS via Spring -->
|
||||
<exclude>**/LDAPAuthorizationMapTest.*</exclude>
|
||||
|
||||
<!-- TODO need to get the JUnit test configured to create SSL sockets nicely via system properties -->
|
||||
<exclude>**/StompSslTest.*</exclude>
|
||||
|
||||
<!-- http://issues.apache.org/activemq/browse/AMQ-1027 -->
|
||||
<exclude>**/FailoverConsumerTest.*</exclude>
|
||||
|
||||
<!-- The NIO implemenation is not working properly on OS X.. -->
|
||||
<exclude>**/nio/**</exclude>
|
||||
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -185,11 +185,12 @@ public class JmsMultipleClientsTestSupport extends CombinationTestSupport {
|
|||
}
|
||||
|
||||
protected ActiveMQDestination createDestination() throws JMSException {
|
||||
String name = "." + getClass().getName() + "." + getName();
|
||||
if (topic) {
|
||||
destination = new ActiveMQTopic("Topic");
|
||||
destination = new ActiveMQTopic("Topic" + name);
|
||||
return (ActiveMQDestination)destination;
|
||||
} else {
|
||||
destination = new ActiveMQQueue("Queue");
|
||||
destination = new ActiveMQQueue("Queue" + name);
|
||||
return (ActiveMQDestination)destination;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,12 +47,9 @@ public class QueueSubscriptionTest extends JmsMultipleClientsTestSupport {
|
|||
consumerCount = 2;
|
||||
producerCount = 1;
|
||||
messageCount = 1000;
|
||||
prefetchCount = 1;
|
||||
messageSize = 1024; // 1 Kb
|
||||
configurePrefetchOfOne();
|
||||
|
||||
// this is gonna be a bit slow what with the low prefetch so bump up the wait time
|
||||
allMessagesList.setMaximumDuration(allMessagesList.getMaximumDuration() * 20);
|
||||
|
||||
doMultipleClientsTest();
|
||||
|
||||
assertTotalMessagesReceived(messageCount * producerCount);
|
||||
|
@ -74,8 +71,8 @@ public class QueueSubscriptionTest extends JmsMultipleClientsTestSupport {
|
|||
consumerCount = 2;
|
||||
producerCount = 1;
|
||||
messageCount = 10;
|
||||
prefetchCount = 1;
|
||||
messageSize = 1024 * 1024 * 1; // 2 MB
|
||||
configurePrefetchOfOne();
|
||||
|
||||
doMultipleClientsTest();
|
||||
|
||||
|
@ -130,6 +127,13 @@ public class QueueSubscriptionTest extends JmsMultipleClientsTestSupport {
|
|||
assertTotalMessagesReceived(messageCount * producerCount);
|
||||
}
|
||||
|
||||
protected void configurePrefetchOfOne() {
|
||||
prefetchCount = 1;
|
||||
|
||||
// this is gonna be a bit slow what with the low prefetch so bump up the wait time
|
||||
allMessagesList.setMaximumDuration(allMessagesList.getMaximumDuration() * 20);
|
||||
}
|
||||
|
||||
public void doMultipleClientsTest() throws Exception {
|
||||
// Create destination
|
||||
final ActiveMQDestination dest = createDestination();
|
||||
|
|
Loading…
Reference in New Issue