⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transformerstestcase.vm

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 VM
字号:
/* * $Id: TransformersTestCase.vm 10621 2008-01-30 12:15:16Z dirk.olmes $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * 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 org.mule.transport.${TransportNameLower}.transformers;import org.mule.transformer.AbstractTransformerTestCase;import org.mule.api.transformer.Transformer;public class ${TransportName}TransformersTestCase extends AbstractTransformerTestCase{    /* For general guidelines on writing transports see       http://mule.mulesource.org/display/MULE/Writing+Transports */    public Object getTestData()    {        // TODO create a test data object that will be passed into the        // transformer        throw new UnsupportedOperationException("getResultData");    }    public Object getResultData()    {        try {            // TODO Return the result data expected once the getTestData()            // value has been transformed            throw new UnsupportedOperationException("getResultData");        }        catch (Exception ex) {            return null;        }    }    public Transformer getTransformer()    {#if( $inboundTransformer != "n")        Transformer t = new ${inboundTransformer}();        // Set the correct return class for this roundtrip test        t.setReturnClass(this.getResultData().getClass());        return t;#else        // No Inbound transformer was created for this Transport        return null;#end    }    public Transformer getRoundTripTransformer()    {#if( $outboundTransformer != "n")        Transformer t = new ${outboundTransformer}();        // Set the correct return class for this roundtrip test        t.setReturnClass(this.getTestData().getClass());        return t;#else        // No Outbound transformer was created for this Transport        return null;#end    }}

⌨️ 快捷键说明

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