📄 functionaltestcase.vm
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -