activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject activemq git commit: [AMQ-6610] - fix up brittle jmock test
Date Fri, 03 Mar 2017 10:14:48 GMT
Repository: activemq
Updated Branches:
  refs/heads/master e67d48680 -> 2809befff


[AMQ-6610] - fix up brittle jmock test


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/2809beff
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/2809beff
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/2809beff

Branch: refs/heads/master
Commit: 2809befff568f5f8c3c16f1a836c229ef4bf95eb
Parents: e67d486
Author: gtully <gary.tully@gmail.com>
Authored: Fri Mar 3 10:14:30 2017 +0000
Committer: gtully <gary.tully@gmail.com>
Committed: Fri Mar 3 10:14:30 2017 +0000

----------------------------------------------------------------------
 .../transport/discovery/DiscoveryNetworkReconnectTest.java        | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/2809beff/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
index 8601c34..68662e1 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
@@ -128,6 +128,9 @@ public class DiscoveryNetworkReconnectTest {
                     new ObjectName("Test:type=Broker,brokerName=BrokerNC,destinationType=Topic,destinationName=ActiveMQ.Advisory.MasterBroker"))));
             allowing(managementContext).registerMBean(with(any(Object.class)), with(equal(
                     new ObjectName("Test:type=Broker,brokerName=BrokerNC,service=jobScheduler,jobSchedulerName=JMS"))));
+            allowing(managementContext).getObjectInstance(with(equal(
+                    new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC"))));
+
 
             atLeast(maxReconnects - 1).of (managementContext).registerMBean(with(any(Object.class)),
with(new NetworkBridgeObjectNameMatcher<ObjectName>(
                         new ObjectName("Test:type=Broker,brokerName=BrokerNC,connector=networkConnectors,networkConnectorName=NC,networkBridge=localhost/127.0.0.1_"


Mime
View raw message