Package com.volantis.xml.pipeline.sax.impl.validation

Examples of com.volantis.xml.pipeline.sax.impl.validation.State


public class TemplateSchemaTestCase
        extends TestCaseAbstract {

    private void checkExpects(State start, Event event, State expected) {
        State actual = start.transition(event);
        assertEquals("Did not expect to move to state " + actual +
                " from " + start + " on event " + event,
                expected, actual);
    }
View Full Code Here


    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectApplyStart() {
        State state = TemplateSchema.EXPECT_APPLY_START;

        checkExpects(state, TemplateSchema.APPLY_START, TemplateSchema.EXPECT_BINDINGS_START);
        checkExpects(state, TemplateSchema.APPLY_END, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectApplyEnd() {
        State state = TemplateSchema.EXPECT_APPLY_END;

        checkExpects(state, TemplateSchema.APPLY_END, State.DONE);
        checkExpects(state, TemplateSchema.APPLY_START, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectBindingsStart() {
        State state = TemplateSchema.EXPECT_BINDINGS_START;

        checkExpects(state, TemplateSchema.BINDINGS_START,
                TemplateSchema.EXPECT_BINDING_START_OR_BINDINGS_END);
        checkExpects(state, TemplateSchema.APPLY_START, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectBindingStartOrBindingsEnd() {
        State state = TemplateSchema.EXPECT_BINDING_START_OR_BINDINGS_END;

        checkExpects(state, TemplateSchema.BINDING_START,
                TemplateSchema.EXPECT_BINDING_VALUE_START);
        checkExpects(state, TemplateSchema.BINDINGS_END, TemplateSchema.EXPECT_DEFINITION_START);
        checkExpects(state, TemplateSchema.APPLY_START, null);
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectBindingValueStart() {
        State state = TemplateSchema.EXPECT_BINDING_VALUE_START;

        checkExpects(state, TemplateSchema.VALUE_START, TemplateSchema.EXPECT_BINDING_VALUE_END);
        checkExpects(state, TemplateSchema.APPLY_START, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectBindingValueEnd() {
        State state = TemplateSchema.EXPECT_BINDING_VALUE_END;

        checkExpects(state, TemplateSchema.VALUE_END, TemplateSchema.EXPECT_BINDING_END);
        checkExpects(state, TemplateSchema.APPLY_START, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectBindingEnd() {
        State state = TemplateSchema.EXPECT_BINDING_END;

        checkExpects(state, TemplateSchema.BINDING_END,
                TemplateSchema.EXPECT_BINDING_START_OR_BINDINGS_END);
        checkExpects(state, TemplateSchema.APPLY_END, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectDefinitionStart() {
        State state = TemplateSchema.EXPECT_DEFINITION_START;

        checkExpects(state, TemplateSchema.DEFINITION_START,
                TemplateSchema.EXPECT_DECLARATIONS_OR_BODY_START);
        checkExpects(state, TemplateSchema.APPLY_START, null);
    }
View Full Code Here

    /**
     * Ensure that the state behaves correctly.
     */
    public void testExpectDeclarationsOrBodyStart() {
        State state = TemplateSchema.EXPECT_DECLARATIONS_OR_BODY_START;

        checkExpects(state, TemplateSchema.DECLARATIONS_START,
                TemplateSchema.EXPECT_PARAMETER_START_OR_DECLARATIONS_END);
        checkExpects(state, TemplateSchema.BODY_START, TemplateSchema.EXPECT_BODY_END);
        checkExpects(state, TemplateSchema.APPLY_START, null);
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.impl.validation.State

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.