activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r907618 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
Date Mon, 08 Feb 2010 11:00:46 GMT
Author: gtully
Date: Mon Feb  8 11:00:46 2010
New Revision: 907618

URL: http://svn.apache.org/viewvc?rev=907618&view=rev
Log:
resolve regression with jobscheduller mbean - mock test is a little particular w.r.t to expected
registered mbeans

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java?rev=907618&r1=907617&r2=907618&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryNetworkReconnectTest.java
Mon Feb  8 11:00:46 2010
@@ -110,6 +110,8 @@
                     new ObjectName("Test:BrokerName=BrokerNC,Type=NetworkConnector,NetworkConnectorName=localhost"))));
             allowing (managementContext).registerMBean(with(any(Object.class)), with(equal(
           
                     new ObjectName("Test:BrokerName=BrokerNC,Type=Topic,Destination=ActiveMQ.Advisory.Connection"))));
+            allowing (managementContext).registerMBean(with(any(Object.class)), with(equal(
           
+                    new ObjectName("Test:BrokerName=BrokerNC,Type=jobScheduler,jobSchedulerName=JMS"))));
             
             atLeast(maxReconnects - 1).of (managementContext).registerMBean(with(any(Object.class)),
with(new NetworkBridgeObjectNameMatcher<ObjectName>(
                         new ObjectName("Test:BrokerName=BrokerNC,Type=NetworkBridge,NetworkConnectorName=localhost,Name=localhost/127.0.0.1_"




Mime
View raw message