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.test.integration.transformer.response;
8   
9   import org.mule.tck.junit4.FunctionalTestCase;
10  import org.mule.tck.junit4.rule.DynamicPort;
11  
12  import org.junit.Rule;
13  import org.junit.Test;
14  
15  public class ResponseTransformerScenariosTestCase extends FunctionalTestCase
16  {
17  
18      @Rule
19      public DynamicPort dynamicPort1 = new DynamicPort("port1");
20  
21      @Rule
22      public DynamicPort dynamicPort2 = new DynamicPort("port2");
23  
24      @Rule
25      public DynamicPort dynamicPort3 = new DynamicPort("port3");
26  
27      @Rule
28      public DynamicPort dynamicPort4 = new DynamicPort("port4");
29  
30      public ResponseTransformerScenariosTestCase()
31      {
32          setDisposeContextPerClass(true);
33      }
34  
35      @Override
36      protected String getConfigResources()
37      {
38          return "org/mule/test/integration/transformer/response/response-transformer-scenarios.xml";
39      }
40  
41      // ***** RESPONSE ENDPONTS ON INBOUND ENDPOINTS USED FOR SYNC RESPONSE AFTER ROUTING *****
42      // Applied by DefaultInternalMessageListener
43  
44      // TODO Not sure how to implement with axis
45  
46      // public void testAxisSyncResponseTransformer() throws Exception
47      // {
48      // MuleClient client = new MuleClient();
49      // MuleMessage message = client.send("axis:http://localhost:4445/services/AxisSync?method=echo",
50      // "request",
51      // null);
52      // assertNotNull(message);
53      // assertEquals("request" + "customResponse", message.getPayloadAsString());
54      // }
55  
56      /**
57       * make maven happy
58       */
59      @Test
60      public void testDummy()
61      {
62      }
63  
64  }