View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
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  }