Package com.volantis.xml.pipeline.sax

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


     * Tests that two calls to the same template does not cause variable
     * redeclaration exception as reported in VBM:2007032027.
     */
    public void testMultipleCallsHref() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".multiple_calls_inp_href.xml",
                   name + ".multiple_calls_exp_href.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                " (" + e.getLineNumber() + ", " + e.getColumnNumber() + ")", e);
View Full Code Here


     * Tests that executing two templates using the same local variable does not
     * cause variable redeclaration exception.
     */
    public void testMultipleCallsInline() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".multiple_calls_inp_inline.xml",
                   name + ".multiple_calls_exp_inline.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                " (" + e.getLineNumber() + ", " + e.getColumnNumber() + ")", e);
View Full Code Here

     * Tests if nested templates can have variables with the same name and the
     * right variable is used when executing expressions.
     */
    public void testMultipleCallsNested() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".multiple_calls_nested_inp.xml",
                   name + ".multiple_calls_nested_exp.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                " (" + e.getLineNumber() + ", " + e.getColumnNumber() + ")", e);
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateNoneHref() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_none_input_href.xml",
                   name + ".defdup_none_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateNoneInline() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_none_input_inline.xml",
                   name + ".defdup_none_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateFirstHref() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_first_input_href.xml",
                   name + ".defdup_first_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateFirstInline() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_first_input_inline.xml",
                   name + ".defdup_first_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateSecondHref() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_second_input_href.xml",
                   name + ".defdup_second_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateSecondInline() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_second_input_inline.xml",
                   name + ".defdup_second_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Note, the order of parameters in the definition is important as a
     * default value can only reference parameters.
     */
    public void testDefaultDuplicateBothHref() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".defdup_both_input_href.xml",
                   name + ".defdup_both_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
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.