Author: fhanik Date: Mon May 28 04:38:30 2007 New Revision: 542207 URL: http://svn.apache.org/viewvc?view=rev&rev=542207 Log: update to test cases, no change really
Modified: tomcat/trunk/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java Modified: tomcat/trunk/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java?view=diff&rev=542207&r1=542206&r2=542207 ============================================================================== --- tomcat/trunk/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java (original) +++ tomcat/trunk/test/org/apache/catalina/tribes/test/channel/ChannelStartStop.java Mon May 28 04:38:30 2007 @@ -17,6 +17,7 @@ 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 @@ super.tearDown(); try {channel.stop(channel.DEFAULT);}catch (Exception ignore){} } - + public void testDoubleFullStart() throws Exception { int count = 0; try { @@ -48,6 +49,12 @@ 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 @@ } catch ( Exception x){/*expected*/} assertEquals(count,1); channel.stop(channel.DEFAULT); - + count = 0; try { channel.start(channel.SND_RX_SEQ); @@ -100,7 +107,7 @@ 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; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]