View Javadoc

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