org.mule.tck.testmodels.mule
Class TestTransaction
java.lang.Object
org.mule.transaction.AbstractTransaction
org.mule.transaction.AbstractSingleResourceTransaction
org.mule.tck.testmodels.mule.TestTransaction
- All Implemented Interfaces:
- Transaction
public class TestTransaction
- extends AbstractSingleResourceTransaction
A test transaction that does nothing on commit or rollback. The transaction does retain a status so that
developers can determine if the the transaction was rolled back or committed.
TestTransaction
public TestTransaction(MuleContext muleContext)
doBegin
protected void doBegin()
throws TransactionException
- Really begin the transaction. Note that resources are enlisted yet.
- Specified by:
doBegin
in class AbstractTransaction
- Throws:
TransactionException
doCommit
protected void doCommit()
throws TransactionException
- Commit the transaction on the underlying resource
- Specified by:
doCommit
in class AbstractTransaction
- Throws:
TransactionException
doRollback
protected void doRollback()
throws TransactionException
- Rollback the transaction on the underlying resource
- Specified by:
doRollback
in class AbstractTransaction
- Throws:
TransactionException
getTestProperty
public String getTestProperty()
setTestProperty
public void setTestProperty(String testProperty)
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.