update to test cases, no change really
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 May 2007 11:38:30 +0000 (11:38 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 28 May 2007 11:38:30 +0000 (11:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542207 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java

index e514001..4d7dabb 100644 (file)
@@ -17,6 +17,7 @@ package org.apache.catalina.tribes.test.channel;
 
 import org.apache.catalina.tribes.group.GroupChannel;
 import junit.framework.TestCase;
+import org.apache.catalina.tribes.transport.ReceiverBase;
 
 /**
  * @author Filip Hanik
@@ -33,7 +34,7 @@ public class ChannelStartStop extends TestCase {
         super.tearDown();
         try {channel.stop(channel.DEFAULT);}catch (Exception ignore){}
     }
-    
+
     public void testDoubleFullStart() throws Exception {
         int count = 0;
         try {
@@ -48,6 +49,12 @@ public class ChannelStartStop extends TestCase {
         channel.stop(channel.DEFAULT);
     }
 
+    public void testScrap() throws Exception {
+        System.out.println(channel.getChannelReceiver().getClass());
+        ((ReceiverBase)channel.getChannelReceiver()).setMaxThreads(1);
+    } 
+
+
     public void testDoublePartialStart() throws Exception {
         //try to double start the RX 
         int count = 0;
@@ -75,7 +82,7 @@ public class ChannelStartStop extends TestCase {
         } catch ( Exception x){/*expected*/}
         assertEquals(count,1);
         channel.stop(channel.DEFAULT);
-        
+
         count = 0;
         try {
             channel.start(channel.SND_RX_SEQ);
@@ -100,7 +107,7 @@ public class ChannelStartStop extends TestCase {
         assertEquals(count,1);
         channel.stop(channel.DEFAULT);
     }
-    
+
     public void testFalseOption() throws Exception {
         int flag = 0xFFF0;//should get ignored by the underlying components
         int count = 0;