org.mule.execution
Class TransactionalExecutionTemplateTestCase

java.lang.Object
  extended by org.mule.tck.junit4.AbstractMuleTestCase
      extended by org.mule.execution.TransactionalExecutionTemplateTestCase
Direct Known Subclasses:
TransactionalErrorHandlingExecutionTemplateTestCase

public class TransactionalExecutionTemplateTestCase
extends AbstractMuleTestCase


Field Summary
protected  MuleEvent mockEvent
           
protected  ExternalTransactionAwareTransactionFactory mockExternalTransactionFactory
           
protected  MessagingException mockMessagingException
           
protected  MessagingExceptionHandler mockMessagingExceptionHandler
           
protected  MuleContext mockMuleContext
           
protected  TestTransaction mockNewTransaction
           
protected  TestTransaction mockTransaction
           
protected  MuleEvent RETURN_VALUE
           
 
Fields inherited from class org.mule.tck.junit4.AbstractMuleTestCase
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY
 
Constructor Summary
TransactionalExecutionTemplateTestCase()
           
 
Method Summary
protected  ExecutionTemplate createExecutionTemplate(MuleTransactionConfig config)
           
protected  ExecutionCallback getEmptyTransactionCallback()
           
protected  ExecutionCallback getRollbackTransactionCallback()
           
 void testActionAlwaysBeginAndCommitTxAndCommitNewTx()
           
 void testActionAlwaysBeginAndNoTx()
           
 void testActionAlwaysBeginAndRollbackTxAndCommitNewTx()
           
 void testActionAlwaysBeginAndRollbackTxAndRollbackNewTx()
           
 void testActionAlwaysBeginAndSuspendXaTxAndCommitNewTx()
           
 void testActionAlwaysBeginAndSuspendXaTxAndRollbackNewTx()
           
 void testActionAlwaysJoinAndNoTx()
           
 void testActionAlwaysJoinAndTx()
           
 void testActionBeginOrJoinAndNoTx()
           
 void testActionBeginOrJoinAndTx()
           
 void testActionIndifferentConfig()
           
 void testActionJoinIfPossibleAndNoTx()
           
 void testActionJoinIfPossibleAndTx()
           
 void testActionNeverAndNoTx()
           
 void testActionNeverAndTx()
           
 void testActionNoneAndNoTx()
           
 void testActionNoneAndTxForCommit()
           
 void testActionNoneAndTxForRollback()
           
 void testActionNoneAndWithExternalTransactionWithNoTx()
           
 void testActionNoneAndWithExternalTransactionWithTx()
           
 void testActionNoneAndXaTx()
           
 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

mockMuleContext

protected MuleContext mockMuleContext

RETURN_VALUE

@Mock
protected MuleEvent RETURN_VALUE

mockTransaction

@Spy
protected TestTransaction mockTransaction

mockNewTransaction

@Spy
protected TestTransaction mockNewTransaction

mockExternalTransactionFactory

@Mock
protected ExternalTransactionAwareTransactionFactory mockExternalTransactionFactory

mockMessagingException

@Mock
protected MessagingException mockMessagingException

mockEvent

@Mock(answer=RETURNS_DEEP_STUBS)
protected MuleEvent mockEvent

mockMessagingExceptionHandler

@Mock
protected MessagingExceptionHandler mockMessagingExceptionHandler
Constructor Detail

TransactionalExecutionTemplateTestCase

public TransactionalExecutionTemplateTestCase()
Method Detail

unbindTransaction

public void unbindTransaction()
                       throws Exception
Throws:
Exception

testActionIndifferentConfig

public void testActionIndifferentConfig()
                                 throws Exception
Throws:
Exception

testActionNeverAndNoTx

public void testActionNeverAndNoTx()
                            throws Exception
Throws:
Exception

testActionNeverAndTx

public void testActionNeverAndTx()
                          throws Exception
Throws:
Exception

testActionNoneAndNoTx

public void testActionNoneAndNoTx()
                           throws Exception
Throws:
Exception

testActionNoneAndTxForCommit

public void testActionNoneAndTxForCommit()
                                  throws Exception
Throws:
Exception

testActionNoneAndTxForRollback

public void testActionNoneAndTxForRollback()
                                    throws Exception
Throws:
Exception

testActionNoneAndXaTx

public void testActionNoneAndXaTx()
                           throws Exception
Throws:
Exception

testActionNoneAndWithExternalTransactionWithNoTx

public void testActionNoneAndWithExternalTransactionWithNoTx()
                                                      throws Exception
Throws:
Exception

testActionNoneAndWithExternalTransactionWithTx

public void testActionNoneAndWithExternalTransactionWithTx()
                                                    throws Exception
Throws:
Exception

testActionAlwaysBeginAndNoTx

public void testActionAlwaysBeginAndNoTx()
                                  throws Exception
Throws:
Exception

testActionAlwaysBeginAndCommitTxAndCommitNewTx

public void testActionAlwaysBeginAndCommitTxAndCommitNewTx()
                                                    throws Exception
Throws:
Exception

testActionAlwaysBeginAndRollbackTxAndCommitNewTx

public void testActionAlwaysBeginAndRollbackTxAndCommitNewTx()
                                                      throws Exception
Throws:
Exception

testActionAlwaysBeginAndRollbackTxAndRollbackNewTx

public void testActionAlwaysBeginAndRollbackTxAndRollbackNewTx()
                                                        throws Exception
Throws:
Exception

testActionAlwaysBeginAndSuspendXaTxAndCommitNewTx

public void testActionAlwaysBeginAndSuspendXaTxAndCommitNewTx()
                                                       throws Exception
Throws:
Exception

testActionAlwaysBeginAndSuspendXaTxAndRollbackNewTx

public void testActionAlwaysBeginAndSuspendXaTxAndRollbackNewTx()
                                                         throws Exception
Throws:
Exception

testActionAlwaysJoinAndNoTx

public void testActionAlwaysJoinAndNoTx()
                                 throws Exception
Throws:
Exception

testActionAlwaysJoinAndTx

public void testActionAlwaysJoinAndTx()
                               throws Exception
Throws:
Exception

testActionBeginOrJoinAndNoTx

public void testActionBeginOrJoinAndNoTx()
                                  throws Exception
Throws:
Exception

testActionBeginOrJoinAndTx

public void testActionBeginOrJoinAndTx()
                                throws Exception
Throws:
Exception

testActionJoinIfPossibleAndNoTx

public void testActionJoinIfPossibleAndNoTx()
                                     throws Exception
Throws:
Exception

testActionJoinIfPossibleAndTx

public void testActionJoinIfPossibleAndTx()
                                   throws Exception
Throws:
Exception

createExecutionTemplate

protected ExecutionTemplate createExecutionTemplate(MuleTransactionConfig config)

getEmptyTransactionCallback

protected ExecutionCallback getEmptyTransactionCallback()

getRollbackTransactionCallback

protected ExecutionCallback getRollbackTransactionCallback()


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