Package org.mule.config.spring

Examples of org.mule.config.spring.SpringXmlConfigurationMuleArtifactFactory


    private static final String VM_SCHEMA_URL = "http://www.mulesoft.org/schema/mule/vm";

    @Test
    public void createsMessageSourceArtifact() throws MuleArtifactFactoryException, DocumentException
    {
        SpringXmlConfigurationMuleArtifactFactory factory = new SpringXmlConfigurationMuleArtifactFactory();
        XmlConfigurationCallback callback = mock(XmlConfigurationCallback.class);
        HashMap<String, String> map = new HashMap<String, String>();
        map.put("test", "test1");
        when(callback.getEnvironmentProperties()).thenReturn(map);
        when(callback.getPropertyPlaceholders()).thenReturn(new Element[] {});
        when(callback.getSchemaLocation(VM_SCHEMA_URL)).thenReturn("http://www.mulesoft.org/schema/mule/vm/current/mule-vm.xsd");
        Element element = createElement("inbound-endpoint", VM_SCHEMA_URL, "vm");
        element.setAttribute("path", "/test");

        MuleArtifact artifact = factory.getArtifactForMessageProcessor(element, callback);

        Assert.assertFalse(artifact.hasCapability(Testable.class));
    }
View Full Code Here

TOP

Related Classes of org.mule.config.spring.SpringXmlConfigurationMuleArtifactFactory

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.