1
2
3
4
5
6
7 package org.mule.module.jboss.config;
8
9 import org.mule.tck.junit4.FunctionalTestCase;
10
11 import com.arjuna.ats.arjuna.common.arjPropertyManager;
12
13 import org.junit.Test;
14
15 import static org.junit.Assert.assertEquals;
16 import static org.junit.Assert.assertNotNull;
17 import static org.junit.Assert.assertTrue;
18
19 public class JbossTSNamespaceHandlerTestCase extends FunctionalTestCase
20 {
21
22 @Override
23 protected String getConfigResources()
24 {
25 return "jbossts-namespacehandler.xml";
26 }
27
28 @Test
29 public void testNamespaceHandler()
30 {
31 assertNotNull(muleContext.getTransactionManager());
32 assertTrue(muleContext.getTransactionManager().getClass().getName().compareTo("arjuna") > 0);
33 assertEquals(arjPropertyManager.propertyManager.getProperty("test"),"TEST");
34 }
35
36 }