activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r390164 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
Date Thu, 30 Mar 2006 15:39:17 GMT
Author: jstrachan
Date: Thu Mar 30 07:39:15 2006
New Revision: 390164

URL: http://svn.apache.org/viewcvs?rev=390164&view=rev
Log:
added test case for rendezvous

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

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java?rev=390164&r1=390163&r2=390164&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryTransportBrokerTest.java
Thu Mar 30 07:39:15 2006
@@ -124,18 +124,22 @@
     
     protected TransportConnector createConnector() throws Exception, IOException, URISyntaxException
{
         TransportConnector x = super.createConnector();
-        x.setDiscoveryUri(new URI("multicast://default"));
+        x.setDiscoveryUri(new URI(getDiscoveryUri()));
         return x;
     }
+
+    protected String getDiscoveryUri() {
+        return "multicast://default";
+    }
     
     protected TransportConnector createRemoteConnector() throws Exception, IOException, URISyntaxException
{
         TransportConnector x = super.createRemoteConnector();
-        x.setDiscoveryUri(new URI("multicast://default"));
+        x.setDiscoveryUri(new URI(getDiscoveryUri()));
         return x;
     }
         
     protected StubConnection createFailoverConnection() throws Exception {        
-        URI failoverURI = new URI("discovery:multicast://default");
+        URI failoverURI = new URI("discovery:" + getDiscoveryUri());
         Transport transport = TransportFactory.connect(failoverURI);
         StubConnection connection = new StubConnection(transport);
         connections.add(connection);



Mime
View raw message