activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r382824 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java
Date Fri, 03 Mar 2006 13:59:12 GMT
Author: chirino
Date: Fri Mar  3 05:59:11 2006
New Revision: 382824

URL: http://svn.apache.org/viewcvs?rev=382824&view=rev
Log:
bad testcase, transport was never started.

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java?rev=382824&r1=382823&r2=382824&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/failover/BadConnectionTest.java
Fri Mar  3 05:59:11 2006
@@ -17,8 +17,10 @@
 package org.apache.activemq.transport.failover;
 
 import org.apache.activemq.command.ActiveMQMessage;
+import org.apache.activemq.command.Command;
 import org.apache.activemq.transport.Transport;
 import org.apache.activemq.transport.TransportFactory;
+import org.apache.activemq.transport.TransportListener;
 
 import java.io.IOException;
 import java.net.URI;
@@ -49,6 +51,21 @@
 
     protected void setUp() throws Exception {
         transport = createTransport();
+        transport.setTransportListener(new TransportListener() {
+
+            public void onCommand(Command command) {
+            }
+
+            public void onException(IOException error) {
+            }
+
+            public void transportInterupted() {
+            }
+
+            public void transportResumed() {
+            }
+        });
+        transport.start();
     }
 
     protected void tearDown() throws Exception {
@@ -56,7 +73,5 @@
             transport.stop();
         }
     }
-    
-    
-    
+        
 }



Mime
View raw message