Package com.volantis.xml.pipeline.sax

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


     * Test the template model with the definition referenced via href. This
     * covers exactly the same points as {@link #testInlineDefinition}.
     */
    public void testIncludeDefinition() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".include_input.xml",
                   name + ".include_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here


     * Test that immediate mode bindings are processed once, immediately,
     * and not again.
     */
    public void testImmediateBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".immediate_input.xml",
                   name + ".immediate_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

    /**
     * Test that repeated mode bindings are processed each time they are used.
     */
    public void testRepeatedBinding() throws Exception {
        try {
                doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".repeated_input.xml",
                   name + ".repeated_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * produces simple content the first time it is processed and complex the
     * next.
     */
    public void testRepeatedErrorBinding() throws Exception {
        try {
                doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".repeated_error_input.xml",
                   name + ".repeated_error_expected.xml");
            fail("Did not detect complexity mismatch");
        } catch(XMLPipelineException e) {
            assertEquals("The 'count' parameter was declared to be simple " +
View Full Code Here

     * Test that deferred mode bindings are processed once, on first use,
     * and not again.
     */
    public void testDeferredBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".deferred_input.xml",
                   name + ".deferred_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Test that ref bindings actually refer to the underlying binding and
     * that they behave according to the underlying binding's evaluation mode.
     */
    public void testRefBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".ref_binding_input.xml",
                   name + ".ref_binding_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * that they behave according to the underlying binding's evaluation mode
     * where the underlying binding itself is a ref to another binding.
     */
    public void testDoubleRefBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".doubleref_binding_input.xml",
                   name + ".doubleref_binding_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Test that default values for parameters are handled correctly for
     * all the various ways defaults can be supplied.
     */
    public void testDefaultParameters() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".default_params_input.xml",
                   name + ".default_params_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Test that expression variables can be used to insert parameter values
     * into markup attributes.
     */
    public void testExpressionVariables() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".exp_var_attrs_input.xml",
                   name + ".exp_var_attrs_expected.xml");
        } catch (SAXParseException e) {
            throw new ExtendedSAXException(e.getMessage() +
                                            " (" + e.getLineNumber() + ", " +
View Full Code Here

     * Test that bindings can find the values from their parent templates.
     * This was originally reported as a bug in VBM:2004022507.
     */
    public void testValueBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".value_binding_input.xml",
                   name + ".value_binding_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.