functionaltestcase.vm

来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· VM 代码 · 共 35 行

VM
35
字号
/* * Generated by the Mule project wizard. http://mule.mulesource.org * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package ${groupId}.${ModuleNameLower};import org.mule.api.MuleMessage;import org.mule.module.client.MuleClient;import org.mule.tck.FunctionalTestCase;import org.mule.transport.NullPayload;public class ${ModuleName}TestCase extends FunctionalTestCase{    protected String getConfigResources()    {        //TODO You'll need to edit this file to make the test applicable to your module        return "${ModuleNameLower}-functional-test-config.xml";    }    public void test${ModuleName}() throws Exception    {        MuleClient client = new MuleClient();        MuleMessage result = client.send("vm://in", "some data", null);        assertNotNull(result);        assertNull(result.getExceptionPayload());        assertFalse(result.getPayload() instanceof NullPayload);        //TODO Assert the correct data has been received        assertEquals("some data Received", result.getPayloadAsString());    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?