org.mule.providers.tcp.protocols
Class XmlMessageProtocolTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.mule.tck.AbstractMuleTestCase
              extended byorg.mule.providers.tcp.protocols.XmlMessageProtocolTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
XmlMessageEOFProtocolTestCase

public class XmlMessageProtocolTestCase
extends org.mule.tck.AbstractMuleTestCase

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


Nested Class Summary
 
Nested classes inherited from class org.mule.tck.AbstractMuleTestCase
org.mule.tck.AbstractMuleTestCase.TestInfo
 
Field Summary
 
Fields inherited from class org.mule.tck.AbstractMuleTestCase
logger
 
Constructor Summary
XmlMessageProtocolTestCase()
           
 
Method Summary
protected  void doSetUp()
           
protected  void doTearDown()
           
protected  byte[] read(InputStream is)
           
protected  void setProtocol(org.mule.providers.tcp.protocols.XmlMessageProtocol xmp)
           
 void testMultipleMessages()
           
 void testSingleMessage()
           
 void testSlowStream()
           
 void testTwoMessages()
           
 
Methods inherited from class org.mule.tck.AbstractMuleTestCase
addTest, disposeManager, finalize, getDefaultModel, getManager, getName, getTestComponent, getTestConnector, getTestDescriptor, getTestEndpoint, getTestEvent, getTestEvent, getTestEvent, getTestEvent, getTestEventContext, getTestInfo, getTestManager, getTestSession, getTestTransformer, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isOffline, run, runBare, setDisposeManagerPerSuite, setUp, suitePostSetUp, suitePostTearDown, suitePreSetUp, suitePreTearDown, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlMessageProtocolTestCase

public XmlMessageProtocolTestCase()
Method Detail

setProtocol

protected void setProtocol(org.mule.providers.tcp.protocols.XmlMessageProtocol xmp)

read

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

doSetUp

protected void doSetUp()
                throws Exception
Throws:
Exception

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-2008 MuleSource, Inc.. All Rights Reserved.