|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.mule.tck.AbstractMuleTestCase
org.mule.tck.FunctionalTestCase
org.mule.tck.DynamicPortTestCase
org.mule.transport.http.reliability.InboundMessageLossTestCase
public class InboundMessageLossTestCase
Verify that no inbound messages are lost when exceptions occur. The message must either make it all the way to the SEDA queue (in the case of an asynchronous inbound endpoint), or be restored/rolled back at the source. In the case of the HTTP transport, there is no way to restore the source message so an exception is simply returned to the client.
Nested Class Summary | |
---|---|
static class |
InboundMessageLossTestCase.BadHandler
Custom Exception Handler that creates a different exception |
static class |
InboundMessageLossTestCase.Handler
Custom Exception Handler that handles an exception |
Nested classes/interfaces inherited from class org.mule.tck.AbstractMuleTestCase |
---|
AbstractMuleTestCase.TestInfo |
Field Summary | |
---|---|
protected HttpClient |
httpClient
|
Fields inherited from class org.mule.tck.AbstractMuleTestCase |
---|
callbackCalled, CLASSNAME_ANNOTATIONS_CONFIG_BUILDER, DEFAULT_MULE_TEST_TIMEOUT_SECS, IGNORED_DOT_MULE_DIRS, LOCK_TIMEOUT, logger, muleContext, numPorts, ports, PROPERTY_MULE_TEST_TIMEOUT, RECEIVE_TIMEOUT, TEST_MESSAGE, testTimeoutSecs |
Constructor Summary | |
---|---|
InboundMessageLossTestCase()
|
Method Summary | |
---|---|
protected HttpMethodBase |
createRequest(String uri)
|
protected void |
doSetUp()
Exactly the same a AbstractMuleTestCase.setUp() in normal JUnit test cases. |
protected String |
getBaseUri()
|
protected String |
getConfigResources()
|
protected int |
getNumPortsToFind()
|
void |
testComponentException()
|
void |
testHandledTransformerException()
|
void |
testNoException()
|
void |
testNotHandledTransformerException()
|
void |
testRouterException()
|
void |
testTransformerException()
|
Methods inherited from class org.mule.tck.DynamicPortTestCase |
---|
doTearDown |
Methods inherited from class org.mule.tck.FunctionalTestCase |
---|
getBuilder, getComponent, getComponent, getFlowConstruct, getFunctionalTestComponent, loadResource, loadResourceAsString |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected HttpClient httpClient
Constructor Detail |
---|
public InboundMessageLossTestCase()
Method Detail |
---|
protected String getConfigResources()
getConfigResources
in class FunctionalTestCase
protected void doSetUp() throws Exception
AbstractMuleTestCase
AbstractMuleTestCase.setUp()
in normal JUnit test cases. this is called before a test
method has been called.
doSetUp
in class DynamicPortTestCase
Exception
- if something fails that should halt the testcasepublic void testNoException() throws Exception
Exception
public void testTransformerException() throws Exception
Exception
public void testHandledTransformerException() throws Exception
Exception
public void testNotHandledTransformerException() throws Exception
Exception
public void testRouterException() throws Exception
Exception
public void testComponentException() throws Exception
Exception
protected HttpMethodBase createRequest(String uri)
protected String getBaseUri()
protected int getNumPortsToFind()
getNumPortsToFind
in class DynamicPortTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |