Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.TestPipelineFactory


    /**
     * Tests that every 'true' when is included in matchevery
     */
    public void testMultipleMatchevery() throws Exception {
        doTest(
                new TestPipelineFactory(),
                "when-multiple-matchevery.input.xml",
                "when-multiple-matchevery.expected.xml");
    }
View Full Code Here


    /**
     * Tests that otherwise is included when there is no previous match
     */
    public void testOtherwiseNoPreviousMatch() throws Exception {
        doTest(
                new TestPipelineFactory(),
                "otherwise-no-previousmatch.input.xml",
                "otherwise-no-previousmatch.expected.xml");
    }
View Full Code Here

    /**
     * Tests that otherwise is skipped when there is a previous match
     */
    public void testOtherwisePreviousMatch() throws Exception {
        doTest(
                new TestPipelineFactory(),
                "otherwise-previousmatch.input.xml",
                "otherwise-previousmatch.expected.xml");
    }
View Full Code Here

    /**
     * Tests that selects can be nested
     */
    public void testNestedSelects() throws Exception {
        doTest(
                new TestPipelineFactory(),
                "nested-selects.input.xml",
                "nested-selects.expected.xml");
    }
View Full Code Here

     * element is included after attribute has been removed.
     */
    public void testSelExprTrue()
            throws Exception {

        doTest(new TestPipelineFactory(),
                "sel-expr-true-input.xml",
                "sel-expr-true-expected.xml");
    }
View Full Code Here

     * element is not included.
     */
    public void testSelExprFalse()
            throws Exception {

        doTest(new TestPipelineFactory(),
                "sel-expr-false-input.xml",
                "sel-expr-false-expected.xml");
    }
View Full Code Here

        URIResource resourceA = new URIResource("file:///does/not/exist");
       
        String filePath = "file://" + tempFile.getPath();
        URIResource resourceB = new URIResource(filePath);
       
        TestPipelineFactory factory = new TestPipelineFactory();
       
        final XMLPipelineContext pipelineContext =
                factory.createPipelineContext();
               
       
        WSDLResource testResource = new WSDLResource() {
            // javadoc inherited
            public InputSource provideInputSource(XMLPipelineContext context) {
View Full Code Here

     */
    protected Thread getThread(final URL inputURL, final URL expectedURL) {
        Thread thread = new Thread() {
            public void run() {
                try {
                    doTest(new TestPipelineFactory(),
                            inputURL,
                            expectedURL);

                } catch (Exception exc) {
                    exc.printStackTrace();
View Full Code Here

    }

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();
        factory = new TestPipelineFactory();
        // create an empty pipeline configuration
        XMLPipelineConfiguration pipelineConfig =
                factory.createPipelineConfiguration();
        // ok to use null interaction for this test
        EnvironmentInteraction rootInteraction = null;
View Full Code Here

     * @return a <code>XMLPipelineFactory</code> instance
     */
    private XMLPipelineFactory createPipelineFactory(
                final String debugOutputFilesPrefix,
                final boolean setDebugOutputFilesPrefix) {
        return new TestPipelineFactory() {
            // javadoc inherited
            public XMLPipelineContext createPipelineContext(
                        XMLPipelineConfiguration configuration,
                        EnvironmentInteraction environmentInteraction) {
                XMLPipelineContext context =
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.TestPipelineFactory

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.