From ccd53d4bc94a2f87411191188c142e0d71f34cc0 Mon Sep 17 00:00:00 2001 From: fhanik Date: Mon, 28 May 2007 11:38:30 +0000 Subject: [PATCH] update to test cases, no change really git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@542207 13f79535-47bb-0310-9956-ffa450edef68 --- .../catalina/tribes/test/channel/ChannelStartStop.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java b/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java index e514001a5..4d7dabb18 100644 --- a/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java +++ b/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java @@ -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; -- 2.11.0