View Javadoc

1   /*
2    * $Id: JbossTSNamespaceHandlerTestCase.java 22409 2011-07-14 05:14:27Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  package org.mule.module.jboss.config;
11  
12  import org.mule.tck.junit4.FunctionalTestCase;
13  
14  import org.junit.Test;
15  
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          // TODO JBossTS now uses different configuration approach, broke props into 3 javabeans, update
34          //assertEquals(arjPropertyManager.propertyManager.getProperty("test"),"TEST");
35      }
36  
37  }