Package org.mule.api.registry

Examples of org.mule.api.registry.TransformerResolver


    private final Converter appleToString = new MockConverterBuilder().from(APPLE_DATA_TYPE).to(DataTypeFactory.STRING).build();

    @Before
    public void setUp() throws Exception
    {
        TransformerResolver transformerResolver = mock(TransformerResolver.class);
        when(transformerResolver.resolve(DataTypeFactory.STRING, APPLE_DATA_TYPE)).thenReturn(stringToApple);
        when(transformerResolver.resolve(APPLE_DATA_TYPE, DataTypeFactory.STRING)).thenReturn(appleToString);

        muleRegistryHelper.registerObject("mockTransformerResolver", transformerResolver);

        muleRegistryHelper.registerObject("StringToAppleConverter", stringToApple);
        muleRegistryHelper.registerObject("AppleToStringConverter", appleToString, appleToString.getClass());
View Full Code Here


    private final Converter orangeToString = new MockConverterBuilder().from(ORANGE_DATA_TYPE).to(DataTypeFactory.STRING).build();

    @Before
    public void setUp() throws Exception
    {
        TransformerResolver transformerResolver = mock(TransformerResolver.class);
        when(transformerResolver.resolve(DataTypeFactory.STRING, ORANGE_DATA_TYPE)).thenReturn(stringToOrange);
        when(transformerResolver.resolve(ORANGE_DATA_TYPE, DataTypeFactory.STRING)).thenReturn(orangeToString);

        muleRegistryHelper.registerObject("mockTransformerResolver", transformerResolver);

        muleRegistryHelper.registerTransformer(orangeToString);
        muleRegistryHelper.registerTransformer(stringToOrange);
View Full Code Here

TOP

Related Classes of org.mule.api.registry.TransformerResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.