Package com.volantis.xml.pipeline.sax

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


    /**
     * Ensure that if there are two dynamic pipelines nested within each other
     * that the DISelect attributes still work properly.
     */
    public void testNestedPipelines() throws Exception {
        doTest(new TestPipelineFactory(),
                "nested-pipeline-input.xml",
                "nested-pipeline-expected.xml");
    }
View Full Code Here


    /**
     * Tests that the contents is shown for a true expression
     */
    public void testIfTrue() throws Exception {
        doTest(new TestPipelineFactory(),
                "if-true-input.xml",
                "if-true-expected.xml");
    }
View Full Code Here

    /**
     * Tests that the contents is skipped for a true expression
     */
    public void testIfFalse() throws Exception {
        doTest(new TestPipelineFactory(),
                "if-false-input.xml",
                "if-false-expected.xml");
    }
View Full Code Here

    /**
     * test the behaviour when the expression evals to an empty sequence
     */
    public void testIfEmpty() throws Exception {
  doTest(new TestPipelineFactory(),
               "if-empty-input.xml",
               "if-empty-expected.xml");
    }
View Full Code Here

    /**
     * Ensure that the default selid name is xml:id.
     */
    public void testDefaultSelidName() throws Exception {
        doTest(new TestPipelineFactory(),
                "default-selid-name-input.xml",
                "default-selid-name-expected.xml");
    }
View Full Code Here

    /**
     * Ensure that a prefixed selid name works correctly.
     */
    public void testPrefixedSelidName() throws Exception {
        doTest(new TestPipelineFactory(),
                "prefixed-selid-name-input.xml",
                "prefixed-selid-name-expected.xml");
    }
View Full Code Here

     * Ensure that a prefixed selid name with no valid namespace declaration
     * fails.
     */
    public void testPrefixedErrorSelidName() throws Exception {
        try {
        doTest(new TestPipelineFactory(),
                "prefixed-error-selid-name-input.xml",
                "prefixed-error-selid-name-expected.xml");
            fail("Did not detect missing namespace prefix declaration");
        } catch (IllegalStateException e) {
            assertEquals("Could not find a non empty prefix declared for namespace: http://acme.com/",
View Full Code Here

    /**
     * Ensure that an unprefixed selid name works correctly.
     */
    public void testUnprefixedSelidName() throws Exception {
        doTest(new TestPipelineFactory(),
                "unprefixed-selid-name-input.xml",
                "unprefixed-selid-name-expected.xml");
    }
View Full Code Here

     * Test that an empty sequence works.
     *
     * @throws Exception
     */
    public void testEmptySequence() throws Exception {
        doTest(new TestPipelineFactory(),
                "empty.input.xml", "empty.expected.xml");
    }
View Full Code Here

    /**
     * Ensure that built in diselect elements initialise the selidname
     * correctly.
     */
    public void testDISelectElementsSelidName() throws Exception {
        doTest(new TestPipelineFactory(),
                "diselect-elements-selid-name-input.xml",
                "diselect-elements-selid-name-expected.xml");
    }
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.