Author: fhanik
Date: Mon May 22 20:46:24 2006
New Revision: 408824

URL: http://svn.apache.org/viewvc?rev=408824&view=rev
Log:
Added in a test suite and fixed a bug in a test case

Added:
    
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/TribesTestSuite.java
Modified:
    
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/ChannelStartStop.java
    
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/TestChannelOptionFlag.java

Added: 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/TribesTestSuite.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/TribesTestSuite.java?rev=408824&view=auto
==============================================================================
--- 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/TribesTestSuite.java
 (added)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/TribesTestSuite.java
 Mon May 22 20:46:24 2006
@@ -0,0 +1,23 @@
+package org.apache.catalina.tribes.test;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class TribesTestSuite
+    extends TestCase {
+
+    public TribesTestSuite(String s) {
+        super(s);
+    }
+
+    public static Test suite() {
+        TestSuite suite = new TestSuite();
+        
suite.addTestSuite(org.apache.catalina.tribes.test.channel.ChannelStartStop.class);
+        
suite.addTestSuite(org.apache.catalina.tribes.test.channel.TestChannelOptionFlag.class);
+        
suite.addTestSuite(org.apache.catalina.tribes.test.membership.MemberSerialization.class);
+        
suite.addTestSuite(org.apache.catalina.tribes.test.membership.TestMemberArrival.class);
+        
suite.addTestSuite(org.apache.catalina.tribes.test.membership.TestTcpFailureDetector.class);
+        return suite;
+    }
+}

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/ChannelStartStop.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/ChannelStartStop.java?rev=408824&r1=408823&r2=408824&view=diff
==============================================================================
--- 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/ChannelStartStop.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/ChannelStartStop.java
 Mon May 22 20:46:24 2006
@@ -30,6 +30,7 @@
 
     protected void tearDown() throws Exception {
         super.tearDown();
+        try {channel.stop(channel.DEFAULT);}catch (Exception ignore){}
     }
     
     public void testDoubleFullStart() throws Exception {

Modified: 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/TestChannelOptionFlag.java
URL: 
http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/TestChannelOptionFlag.java?rev=408824&r1=408823&r2=408824&view=diff
==============================================================================
--- 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/TestChannelOptionFlag.java
 (original)
+++ 
tomcat/container/tc5.5.x/modules/groupcom/test/java/org/apache/catalina/tribes/test/channel/TestChannelOptionFlag.java
 Mon May 22 20:46:24 2006
@@ -26,7 +26,7 @@
 
     protected void tearDown() throws Exception {
         super.tearDown();
-        if ( channel != null ) try {channel.start(channel.DEFAULT);}catch ( 
Exception ignore) {}
+        if ( channel != null ) try {channel.stop(channel.DEFAULT);}catch ( 
Exception ignore) {}
         channel = null;
     }
     



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to