Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContextMock


        protocol = new VolantisProtocolMock("protocol", expectations, null);
        mockFieldType.fuzzy.doField(
                mockFactory.expectsInstanceOf(VolantisProtocol.class),
                mockFactory.expectsInstanceOf(XFSelectAttributes.class)).returns().min(0).max(1);

        marinerRequestContextMock = new MarinerRequestContextMock(
                "marinerRequestContextMock", expectations);
        final MarinerPageContextMock marinerPageContextMock =
            new MarinerPageContextMock("marinerPageContextMock", expectations);

        marinerRequestContextMock.expects.getMarinerPageContext()
View Full Code Here


     */
    public void testCaptionShouldNotBeWrittenOutBecauseNoCurrentModel()
            throws XDIMEException, NoSuchFieldException {

        contextMock.expects.getCurrentElement().returns(null);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getInitialRequestContext().returns(
            requestContext).any();
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentContextMock.expects.getCachingDirectives().returns(null).
View Full Code Here

     */
    public void testCaptionShouldNotBeWrittenOutBecauseModelInactive()
            throws XDIMEException, NoSuchFieldException {

        contextMock.expects.getCurrentElement().returns(null);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getInitialRequestContext().returns(
            requestContext).any();
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentContextMock.expects.getCachingDirectives().returns(null).
View Full Code Here

     */
    public void testCaptionShouldNotBeWrittenOutByGroupParent()
            throws XDIMEException, NoSuchFieldException {

        contextMock.expects.getCurrentElement().returns(null);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getInitialRequestContext().returns(
            requestContext).any();
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentContextMock.expects.getCachingDirectives().returns(null).
View Full Code Here

                new ContainerInstanceMock("container", expectations);

        // This expectation is required in order to create the item element
        // with no parent element.
        contextMock.expects.getCurrentElement().returns(null);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getInitialRequestContext().returns(
            requestContext).any();
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentContextMock.expects.getCachingDirectives().returns(null).
View Full Code Here

                new ContainerInstanceMock("container", expectations);

        // This expectation is required in order to create the control element
        // with no parent element.
        contextMock.expects.getCurrentElement().returns(null);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getInitialRequestContext().returns(
            requestContext).any();
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentContextMock.expects.getCachingDirectives().returns(null).
View Full Code Here

        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);
        stylingEngine = new StylingEngineMock("stylingEngine", ordered);
        outputState = new ElementOutputStateMock("outputState", ordered);
    }
View Full Code Here

       
        // Setup XDIME processing environment
        pageCtxMock = new MarinerPageContextMock(
                "pageCtxMock", expectations);
       
        MarinerRequestContextMock requestCtxMock = new MarinerRequestContextMock(
                "requestCtxMock", expectations);
        requestCtxMock
            .expects.getMarinerPageContext()
            .returns(pageCtxMock).any();
View Full Code Here

        volantis = new VolantisMock("volantis", expectations);

        application = new MarinerApplicationMock(
                "application", expectations);

        requestContext = new MarinerRequestContextMock(
                "requestContext", expectations);

        pageContext = new MarinerPageContextMock("pageContext", expectations);

        session = new MarinerSessionContextMock(
View Full Code Here

        deviceMock = new InternalDeviceMock("device", expectations);

        validationHelperMock = new ValidationHelperMock("validationHelper",
                expectations);

        marinerRequestContextMock = new MarinerRequestContextMock(
                "requestContext", expectations);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.MarinerRequestContextMock

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.