Package com.volantis.mcs.runtime.configuration.xml

Examples of com.volantis.mcs.runtime.configuration.xml.TestXmlConfigurationBuilder


            }
            buffer.append("</markup-extensions>");
        }
        buffer.append("</pipeline-configuration>");

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(buffer.toString());
        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertNotNull("MarinerConfig should not be null", marinerConfig);

        return marinerConfig;
    }
View Full Code Here


    public void testDebugDirectory() throws Exception {
        String xml = "<pipeline-configuration>" +
                     "    <debug-output directory=\"dir" + File.separator + "\"/>" +
                     "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertEquals("debug directory is incorrect",
                     "dir" + File.separator,
                     marinerConfig.getPipelineConfiguration().
                        getDebugOutputDirectory());
    }
View Full Code Here

    public void testDebugDirectoryWithoutSlash() throws Exception {
        String xml = "<pipeline-configuration>" +
                "    <debug-output directory=\"dir\"/>" +
                "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        // ensure that File.separator has not been appended to debug directory
        assertEquals("debug directory is incorrect",
                     "dir" ,
                     marinerConfig.getPipelineConfiguration().
                     getDebugOutputDirectory());
View Full Code Here

     */
    public void testDebugDirectoryNotProvided() throws Exception {
        String xml = "<pipeline-configuration>" +
                     "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertNull("expected null debug directory",                      
                     marinerConfig.getPipelineConfiguration().
                        getDebugOutputDirectory());
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.xml.TestXmlConfigurationBuilder

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.