Examples of EnvironmentContextMock


Examples of com.volantis.mcs.context.EnvironmentContextMock

        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).
            any();
        requestContext.expects.getEnvironmentContext().returns(
            environmentContextMock).any();
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

        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).
            any();
        requestContext.expects.getEnvironmentContext().returns(
            environmentContextMock).any();
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

        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).
            any();
        requestContext.expects.getEnvironmentContext().returns(
            environmentContextMock).any();
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

        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).
            any();
        requestContext.expects.getEnvironmentContext().returns(
            environmentContextMock).any();
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

    }

    // Javadoc inherited.
    protected void setSimpleSingleExpectations() {

        EnvironmentContextMock environmentContextMock = new EnvironmentContextMock("environmentContextMock", expectations);
        FormDataManagerMock fdm = new FormDataManagerMock("fdm", expectations);
        FormDescriptor fdesc = new FormDescriptor();
        SessionFormDataMock sessionFormData = new SessionFormDataMock(
                "formData", expectations, "s0", fdesc);
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

    }

    // Javadoc inherited.
    protected void setSimpleMultipleExpectations() {

        EnvironmentContextMock environmentContextMock = new EnvironmentContextMock("environmentContextMock", expectations);
        FormDataManagerMock fdm = new FormDataManagerMock("fdm", expectations);
        FormDescriptor fdesc = new FormDescriptor();
        SessionFormDataMock sessionFormData = new SessionFormDataMock(
                "formData", expectations, "s0", fdesc);
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

            throws XDIMEException, NoSuchFieldException {

        // From new XFGroupElementImpl(context);
        context.expects.getCurrentElement().returns(null);
        context.expects.getInitialRequestContext().returns(requestContext);
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        final ResponseCachingDirectives cachingDirectives =
            new ResponseCachingDirectives(SystemClock.getDefaultInstance());
        cachingDirectives.enable();
        assertTrue(cachingDirectives.isEnabled());
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

                                     boolean stateChanged)
            throws XDIMEException, NoSuchFieldException {

        context.expects.getCurrentElement().returns(null);
        context.expects.getInitialRequestContext().returns(requestContext);
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        final ResponseCachingDirectives cachingDirectives =
            new ResponseCachingDirectives(SystemClock.getDefaultInstance());
        cachingDirectives.enable();
        assertTrue(cachingDirectives.isEnabled());
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

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

        session = new MarinerSessionContextMock(
                "session", expectations);

        environmentContext = new EnvironmentContextMock(
                "environment", expectations);

        // Connect application to volantis bean.
        application.expects.getVolantisBean()
                .returns(volantis)
View Full Code Here

Examples of com.volantis.mcs.context.EnvironmentContextMock

        final DeviceLayoutContextMock deviceLayoutContextMock =
            new DeviceLayoutContextMock("deviceLayoutContextMock", expectations);
        final MarinerPageContextMock marinerPageContextMock =
            new MarinerPageContextMock("marinerPageContextMock", expectations);
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        cachingDirectives =
            new ResponseCachingDirectives(SystemClock.getDefaultInstance());
        cachingDirectives.enable();
        assertTrue(cachingDirectives.isEnabled());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.