Package com.volantis.xml.pipeline.sax

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


    /**
     * Test the conversion to lower case with mixed input.
     */
    public void testElementCaseConverterComplex() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
               "ElementCaseConverterComplexTestCase.input.xml",
               "ElementCaseConverterComplexTestCase.expected.xml");
    }
View Full Code Here


    public URLToURLCConversionTestCase(String name) {
        super(name);
    }

    public void testURLToURLCConversion() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
               "URLToURLCConversionTestCase.input.xml",
               "URLToURLCConversionTestCase.expected.xml");
    }
View Full Code Here

               "URLToURLCConversionTestCase.expected.xml");
    }

    public void testBadServer() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   "URLToURLCConversionTestCase.bad_server.xml",
                   "URLToURLCConversionTestCase.bad_server.xml");
            fail("Should have had an exception");
        } catch (XMLProcessingException e) {
            // Expected behaviour
View Full Code Here

        }
    }

    public void testConversionProblem() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   "URLToURLCConversionTestCase.bad_convert.xml",
                   "URLToURLCConversionTestCase.bad_convert.xml");
            fail("Should have had an exception");
        } catch (XMLStreamingException e) {
            // Expected behaviour
View Full Code Here

     * <content .../> SUCCESS
     * </alternative>
     * </try>
     */
    public void testFetchFailFirst() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
                "FetchFailFirst.input.xml", "FetchFailFirst.expected.xml");
    }
View Full Code Here

     * <fetch .../> WOULD FAIL BUT NEVER REACHED.
     * </alternative>
     * </try>
     */
    public void testFetchFailSecond() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
                "FetchFailSecond.input.xml", "FetchFail.expected.xml");
    }
View Full Code Here

     * <content .../> SUCCESS
     * </alternative>
     * </try>
     */
    public void testMultipleFetchFail() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
                "MultipleFetchFail.input.xml", "FetchFail.expected.xml");
    }
View Full Code Here

     * </alternative>
     * </try>
     */
    public void testAllFail() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                    "AllFetchFail.input.xml", "FetchFail.expected.xml");
            fail("Exception should have been thrown.");
        } catch (CompositeXMLPipelineException composite) {
        }
    }
View Full Code Here

     * </try>
     * </alternative>
     * </try>
     */
    public void testNestedTryFirstSucceeds() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
                "NestedTryFirstSucceeds.input.xml", "NestedTry.expected.xml");
    }
View Full Code Here

     * </try>
     * </alternative>
     * </try>
     */
    public void testNestedTrySecondSucceeds() throws Exception {
        doTest(new IntegrationTestHelper().getPipelineFactory(),
                "NestedTrySecondSucceeds.input.xml", "NestedTry.expected.xml");
    }
View Full Code Here

TOP

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

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.