public class TransactionalExecutionTemplateTestCase extends AbstractMuleTestCase
Modifier and Type | Field and Description |
---|---|
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 |
DEFAULT_TEST_TIMEOUT_SECS, globalTimeout, logger, name, TEST_TIMEOUT_SYSTEM_PROPERTY, TESTING_MODE_PROPERTY_NAME
Constructor and Description |
---|
TransactionalExecutionTemplateTestCase() |
clearExcludedFlag, clearRequestContext, clearTestCaseName, createTestTimeoutRule, dumpFilteredThreadsInTest, getTestHeader, getTestTimeoutSecs, getTimeoutSystemProperty, initializeMuleTest, isDisabledInThisEnvironment, isDisabledInThisEnvironment, isExcluded, isFailOnTimeout, isOffline, isTestIncludedInExclusionFile, takeTestCaseName
protected MuleContext mockMuleContext
@Mock protected MuleEvent RETURN_VALUE
@Spy protected TestTransaction mockTransaction
@Spy protected TestTransaction mockNewTransaction
@Mock protected ExternalTransactionAwareTransactionFactory mockExternalTransactionFactory
@Mock protected MessagingException mockMessagingException
@Mock(answer=RETURNS_DEEP_STUBS) protected MuleEvent mockEvent
@Mock protected MessagingExceptionHandler mockMessagingExceptionHandler
public TransactionalExecutionTemplateTestCase()
public void testActionIndifferentConfig() throws Exception
Exception
public void testActionNoneAndTxForCommit() throws Exception
Exception
public void testActionNoneAndTxForRollback() throws Exception
Exception
public void testActionNoneAndWithExternalTransactionWithNoTx() throws Exception
Exception
public void testActionNoneAndWithExternalTransactionWithTx() throws Exception
Exception
public void testActionAlwaysBeginAndNoTx() throws Exception
Exception
public void testActionAlwaysBeginAndCommitTxAndCommitNewTx() throws Exception
Exception
public void testActionAlwaysBeginAndRollbackTxAndCommitNewTx() throws Exception
Exception
public void testActionAlwaysBeginAndRollbackTxAndRollbackNewTx() throws Exception
Exception
public void testActionAlwaysBeginAndSuspendXaTxAndCommitNewTx() throws Exception
Exception
public void testActionAlwaysBeginAndSuspendXaTxAndRollbackNewTx() throws Exception
Exception
public void testActionAlwaysJoinAndNoTx() throws Exception
Exception
public void testActionAlwaysJoinAndTx() throws Exception
Exception
public void testActionBeginOrJoinAndNoTx() throws Exception
Exception
public void testActionBeginOrJoinAndTx() throws Exception
Exception
public void testActionJoinIfPossibleAndNoTx() throws Exception
Exception
public void testActionJoinIfPossibleAndTx() throws Exception
Exception
protected ExecutionTemplate createExecutionTemplate(MuleTransactionConfig config)
protected ExecutionCallback getEmptyTransactionCallback()
protected ExecutionCallback getRollbackTransactionCallback()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.