org.mule.execution
Class ErrorHandlingExecutionTemplateTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.execution.ErrorHandlingExecutionTemplateTestCase

public class ErrorHandlingExecutionTemplateTestCase
extends AbstractMuleTestCase


Field Summary
protected  MessagingExceptionHandler mockMessagingExceptionHandler
           
protected  TestTransaction mockTransaction
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
ErrorHandlingExecutionTemplateTestCase()
           
 
Method Summary
 void testFailureException()
           
 void testSuccessfulExecution()
           
 void testSuspendedTransactionNotResumedAndNewTransactionResolvedOnException()
           
 void testSuspendedTransactionNotResumedOnException()
           
 void testTransactionIsMarkedRollbackOnExceptionByDefault()
           
 void testTransactionIsNotRollbackOnClassExactlyPatternException()
           
 void testTransactionIsNotRollbackOnClassHierarchyPatternException()
           
 void testTransactionIsNotRollbackOnEveryException()
           
 void testTransactionIsNotRollbackOnMatcherRegexPatternException()
           
 void testTransactionIsResolved()
           
 void testTransactionIsRollbackOnPatternAppliesToRollbackAndCommit()
           
 void unbindTransaction()
           
 
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
 

Field Detail

mockTransaction

@Spy
protected TestTransaction mockTransaction

mockMessagingExceptionHandler

@Mock
protected MessagingExceptionHandler mockMessagingExceptionHandler
Constructor Detail

ErrorHandlingExecutionTemplateTestCase

public ErrorHandlingExecutionTemplateTestCase()
Method Detail

unbindTransaction

public void unbindTransaction()
                       throws Exception
Throws:
Exception

testSuccessfulExecution

public void testSuccessfulExecution()
                             throws Exception
Throws:
Exception

testFailureException

public void testFailureException()
                          throws Exception
Throws:
Exception

testTransactionIsMarkedRollbackOnExceptionByDefault

public void testTransactionIsMarkedRollbackOnExceptionByDefault()
                                                         throws Exception
Throws:
Exception

testTransactionIsNotRollbackOnEveryException

public void testTransactionIsNotRollbackOnEveryException()
                                                  throws Exception
Throws:
Exception

testTransactionIsNotRollbackOnMatcherRegexPatternException

public void testTransactionIsNotRollbackOnMatcherRegexPatternException()
                                                                throws Exception
Throws:
Exception

testTransactionIsNotRollbackOnClassHierarchyPatternException

public void testTransactionIsNotRollbackOnClassHierarchyPatternException()
                                                                  throws Exception
Throws:
Exception

testTransactionIsNotRollbackOnClassExactlyPatternException

public void testTransactionIsNotRollbackOnClassExactlyPatternException()
                                                                throws Exception
Throws:
Exception

testTransactionIsRollbackOnPatternAppliesToRollbackAndCommit

public void testTransactionIsRollbackOnPatternAppliesToRollbackAndCommit()
                                                                  throws Exception
Throws:
Exception

testSuspendedTransactionNotResumedOnException

public void testSuspendedTransactionNotResumedOnException()
                                                   throws Exception
Throws:
Exception

testSuspendedTransactionNotResumedAndNewTransactionResolvedOnException

public void testSuspendedTransactionNotResumedAndNewTransactionResolvedOnException()
                                                                            throws Exception
Throws:
Exception

testTransactionIsResolved

public void testTransactionIsResolved()
                               throws Exception
Throws:
Exception


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