org.mule.transport.tcp.protocols
Class XmlMessageProtocolTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.transport.tcp.protocols.XmlMessageProtocolTestCase
Direct Known Subclasses:
XmlMessageEOFProtocolTestCase

public class XmlMessageProtocolTestCase
extends AbstractMuleTestCase

Test by reading characters from a fixed StringBuffer instead of a TCP port.


Field Summary
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
XmlMessageProtocolTestCase()
           
 
Method Summary
 void doSetUp()
           
protected  void doTearDown()
           
protected  byte[] read(InputStream is)
           
protected  void setProtocol(XmlMessageProtocol xmp)
           
 void testMultipleMessages()
           
 void testSingleMessage()
           
 void testSlowStream()
           
 void testTwoMessages()
           
 
Methods inherited from class org.mule.tck.junit4.AbstractMuleTestCase
clearExcludedFlag, clearRequestContext, createTestTimeoutRule, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMessageProtocolTestCase

public XmlMessageProtocolTestCase()
Method Detail

setProtocol

protected void setProtocol(XmlMessageProtocol xmp)

read

protected byte[] read(InputStream is)
               throws IOException
Throws:
IOException

doSetUp

public void doSetUp()

doTearDown

protected void doTearDown()
                   throws Exception
Throws:
Exception

testSingleMessage

public void testSingleMessage()
                       throws Exception
Throws:
Exception

testTwoMessages

public void testTwoMessages()
                     throws Exception
Throws:
Exception

testMultipleMessages

public void testMultipleMessages()
                          throws Exception
Throws:
Exception

testSlowStream

public void testSlowStream()
                    throws Exception
Throws:
Exception


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.