View Javadoc

1   /*
2    * $Id: AxisConnectorJmsFunctionalTestCase.java 22497 2011-07-21 12:12:26Z dfeist $
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  
11  package org.mule.transport.soap.axis;
12  
13  import static org.junit.Assert.fail;
14  
15  import org.mule.tck.testmodels.services.Person;
16  
17  import org.junit.Test;
18  
19  public class AxisConnectorJmsFunctionalTestCase extends AxisConnectorVMFunctionalTestCase
20  {
21  
22      @Override
23      protected String getTransportProtocol()
24      {
25          return "jms";
26      }
27  
28      // TODO This test case still has serious issues. It was passing at once point just because of some timing
29      // luck between test timeout and event timeout when recieving jms reply.
30      // TODO This test causes an infinite loop in the method org.apache.axis.encoding.SerializationContext.serialize()
31      @Test
32      public void testException() throws Exception
33      {
34  //        try
35  //        {
36  //            muleContext.getClient().send(getTestExceptionEndpoint(), new Person("Ross", "Mason"), null);
37  //            fail("A nested Fault should have been raised");
38  //        }
39  //        catch (Exception e)
40  //        {
41  //            // expected
42  //        }
43  //        catch (Error e)
44  //        {
45  //            // expected
46  //        }
47      }
48  }