Package org.mule.tests.internal
Class TransactionProfilingConsumptionOperations
java.lang.Object
org.mule.tests.internal.TransactionProfilingConsumptionOperations
This class is a container for operations, every public method in this class will be taken as an extension operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransactionExpectation(boolean active, String state) Adds an expectation for the transaction events to comevoidPerforms assertions between the expected states of transactions, and the actual received ones.voidClears the consumedProfilingEventTypefor transactions, and registers theProfilingDataConsumerto get Transaction Profiling Events.
-
Constructor Details
-
TransactionProfilingConsumptionOperations
public TransactionProfilingConsumptionOperations()
-
-
Method Details
-
startConsumingTransactions
@MediaType(value="*/*", strict=false) public void startConsumingTransactions()Clears the consumedProfilingEventTypefor transactions, and registers theProfilingDataConsumerto get Transaction Profiling Events. -
addTransactionExpectation
@MediaType(value="*/*", strict=false) public void addTransactionExpectation(boolean active, String state) Adds an expectation for the transaction events to come- Parameters:
active- The current transaction state (at the moment of the execution of this operation)state- The state of the last received event (commit, continue, rollback, start)
-
assertTransactions
@MediaType(value="*/*", strict=false) public void assertTransactions()Performs assertions between the expected states of transactions, and the actual received ones. The expected and obtained states must be the same amount, and they should be coincide in "active" and "status" in the order it was defined. To avoid problems with parallel executions (e.g. Try within ParallelForeach), we check this order by incomingThread.
-