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.config;
8   
9   import org.mule.DefaultMuleMessage;
10  import org.mule.api.MuleException;
11  import org.mule.api.MuleMessage;
12  import org.mule.module.client.MuleClient;
13  import org.mule.tck.junit4.FunctionalTestCase;
14  
15  import org.junit.Test;
16  
17  import static org.junit.Assert.assertTrue;
18  
19  /*
20   * This test has been added due to MULE-610
21   */
22  public class GlobalEndpointAndTransformerTestCase extends FunctionalTestCase
23  {
24  
25      @Override
26      protected String getConfigResources()
27      {
28          return "org/mule/test/integration/config/globalendpointandtransformer-mule-config.xml";
29      }
30  
31      @Test
32      public void testNormal() throws MuleException
33      {
34          MuleClient client = new MuleClient(muleContext);
35          MuleMessage msg=client.send("vm://in",new DefaultMuleMessage("HELLO!", muleContext));
36          assertTrue(msg.getPayload() instanceof byte[]);
37      }
38  }
39  
40