public class MuleTransactionConfigTestCase extends AbstractMuleTestCase
{
public void testActionAndStringConversion()
{
MuleTransactionConfig c = new MuleTransactionConfig();
c.setMuleContext(muleContext);
c.setAction(MuleTransactionConfig.ACTION_ALWAYS_BEGIN);
assertEquals(MuleTransactionConfig.ACTION_ALWAYS_BEGIN_STRING, c.getActionAsString());
c.setAction(MuleTransactionConfig.ACTION_ALWAYS_JOIN);
assertEquals(MuleTransactionConfig.ACTION_ALWAYS_JOIN_STRING, c.getActionAsString());
c.setAction(MuleTransactionConfig.ACTION_BEGIN_OR_JOIN);
assertEquals(MuleTransactionConfig.ACTION_BEGIN_OR_JOIN_STRING, c.getActionAsString());
c.setAction(MuleTransactionConfig.ACTION_JOIN_IF_POSSIBLE);
assertEquals(MuleTransactionConfig.ACTION_JOIN_IF_POSSIBLE_STRING, c.getActionAsString());
c.setAction(MuleTransactionConfig.ACTION_NONE);
assertEquals(MuleTransactionConfig.ACTION_NONE_STRING, c.getActionAsString());
}