Package com.volantis.mcs.xdime.xforms.model

Examples of com.volantis.mcs.xdime.xforms.model.XFormModelMock


        super.setUp();
        requestContext = new MarinerRequestContextMock("requestContext",
                expectations);
        envContext = new EnvironmentContextMock("envContext", expectations);
        builder = new XFormBuilderMock("builder", expectations);
        model = new XFormModelMock("model", expectations);

        // Set common expectations.
        requestContext.expects.getEnvironmentContext().returns(envContext);
        envContext.expects.getCachingDirectives().returns(null);
    }
View Full Code Here


     */
    public void testStopHandlingDataWithGroupAsParent()
            throws XDIMEException, NoSuchFieldException {
        // create mock objects
        XFormBuilderMock builder = new XFormBuilderMock("builder", expectations);
        XFormModelMock model = new XFormModelMock("model", expectations);

        // set expectations
        // From LabelStrategy#stopHandlingData
        context.expects.getInitialRequestContext().returns(requestContext);
        requestContext.expects.getMarinerPageContext().returns(pageContext);
View Full Code Here

        contextMock.expects.getCurrentElement().returns(control);
        XFLabelElementImpl label = new XFLabelElementImpl(contextMock);

        XFormBuilderMock builder = new XFormBuilderMock("builder", expectations);
        XFormModelMock model = new XFormModelMock("model", expectations);

        contextMock.expects.getXFormBuilder().returns(builder);
        builder.expects.getCurrentModel().returns(model);
        model.expects.isActive().returns(false);
View Full Code Here

        contextMock.expects.getCurrentElement().returns(group);
        XFLabelElementImpl label = new XFLabelElementImpl(contextMock);

        XFormBuilderMock builder = new XFormBuilderMock("builder", expectations);
        XFormModelMock model = new XFormModelMock("model", expectations);

        contextMock.expects.getXFormBuilder().returns(builder);
        builder.expects.getCurrentModel().returns(model);

        label.callCloseOnProtocol(contextMock);
View Full Code Here

        XFItemElementImplMock item =
                new XFItemElementImplMock("item", expectations, contextMock);

        XFormBuilderMock builder = new XFormBuilderMock("builder", expectations);
        XFormModelMock model = new XFormModelMock("model", expectations);
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("pageContext", expectations);
        PolicyReferenceResolverMock policyRefResolver =
                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        SelectOptionMock attributes =
View Full Code Here

        XFormsControlElementMock control = new XFormsControlElementMock(
                "control", expectations, ELEMENT_TYPE, contextMock);

        XFormBuilderMock builder = new XFormBuilderMock("builder", expectations);
        XFormModelMock model = new XFormModelMock("model", expectations);
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("pageContext", expectations);
        PolicyReferenceResolverMock policyRefResolver =
                new PolicyReferenceResolverMock("policyRefResolver", expectations);
        XFFormFieldAttributesMock attributes =
View Full Code Here

        context =
            new XDIMEContextInternalMock("context", ordered);
        attributes = new XDIMEAttributesImpl(XFormElements.GROUP);
        builder = new XFormBuilderMock("builder", ordered);
        model = new XFormModelMock("model", ordered);

        styles = new StylesMock("styles", ordered);
        requestContext =
                new MarinerRequestContextMock("requestContext", ordered);
        pageContext = new MarinerPageContextMock("pageContext", ordered);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.xdime.xforms.model.XFormModelMock

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.