Search in sources :

Example 1 with OperationTransactionalAction

use of org.mule.runtime.extension.api.tx.OperationTransactionalAction in project mule by mulesoft.

the class TransactionalActionParameterTestCase method injectInOperationJoinNotSupported.

@Test
public void injectInOperationJoinNotSupported() throws Exception {
    OperationTransactionalAction value = (OperationTransactionalAction) flowRunner("injectInOperationJoinNotSupported").run().getMessage().getPayload().getValue();
    assertThat(value, is(NOT_SUPPORTED));
}
Also used : OperationTransactionalAction(org.mule.runtime.extension.api.tx.OperationTransactionalAction) Test(org.junit.Test)

Example 2 with OperationTransactionalAction

use of org.mule.runtime.extension.api.tx.OperationTransactionalAction in project mule by mulesoft.

the class TransactionalActionParameterTestCase method injectDefaultOperationTransactionalAction.

@Test
public void injectDefaultOperationTransactionalAction() throws Exception {
    OperationTransactionalAction value = (OperationTransactionalAction) flowRunner("injectInOperationDefaultValue").run().getMessage().getPayload().getValue();
    assertThat(value, is(JOIN_IF_POSSIBLE));
}
Also used : OperationTransactionalAction(org.mule.runtime.extension.api.tx.OperationTransactionalAction) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 OperationTransactionalAction (org.mule.runtime.extension.api.tx.OperationTransactionalAction)2