View Javadoc

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