Package com.volantis.xml.pipeline.sax

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


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


    /**
     * Test that bindings that don't map to parameters cause a fatal error.
     */
    public void testUndeclaredParameter() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".undeclared_param.xml",
                   name + ".undeclared_param.xml");

            fail("Should have had a streaming exception for the " +
                 "undeclared parameter");
View Full Code Here

    /**
     * Test that bindings that have no name cause a fatal error.
     */
    public void testUnnamedBinding() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".unnamed_binding.xml",
                   name + ".unnamed_binding.xml");

            fail("Should have had a processing exception for the " +
                 "unnamed binding");
View Full Code Here

    /**
     * Test that parameters that have no name cause a fatal error.
     */
    public void testUnnamedParameter() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".unnamed_param.xml",
                   name + ".unnamed_param.xml");

            fail("Should have had a processing exception for the " +
                 "unnamed parameter");
View Full Code Here

     * Test that a fatal error is raised when a required parameter has no
     * binding.
     */
    public void testMissingRequiredParameter() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".missing_req_param.xml",
                   name + ".missing_req_param.xml");

            fail("Should have had a processing exception for the " +
                 "missing required parameter");
View Full Code Here

     * Test that a fatal error is raised when a parameter is declared without
     * a containing template apply.
     */
    public void testMissingApply() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".missing_apply.xml",
                   name + ".missing_apply.xml");

            fail("Should have had a processing exception for the " +
                 "missing apply (no parameter block)");
View Full Code Here

     * Test that a mismatch for binding complexity vs binding value causes
     * a fatal error when the binding has immediate mode.
     */
    public void testBadImmediateBindingComplexity() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".bad_immediate.xml",
                   name + ".bad_immediate.xml");

            fail("Should have had a streaming exception for the " +
                 "bad type of content for an immediate binding");
View Full Code Here

     * Test that a mismatch for binding complexity vs binding value causes
     * a fatal error when the binding has deferred mode.
     */
    public void testBadDeferredBindingComplexity() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".bad_deferred.xml",
                   name + ".bad_deferred.xml");

            fail("Should have had a streaming exception for the " +
                 "bad type of content for an deferred binding");
View Full Code Here

     * Test that a mismatch for binding value vs parameter complexity causes
     * a fatal error.
     */
    public void testBadParameterComplexity() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".bad_param.xml",
                   name + ".bad_param.xml");

            fail("Should have had a processing exception for the " +
                 "bad type of binding content for a simple parameter");
View Full Code Here

     * Test the template model with the definition referenced via href. This
     * covers exactly the same points as {@link #testInlineDefinition}.
     */
    public void testDependency() throws Exception {
        try {
            doTest(new IntegrationTestHelper().getPipelineFactory(),
                   name + ".dependency_input.xml",
                   name + ".dependency_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.