Examples of MarinerPageContextMock


Examples of com.volantis.mcs.context.MarinerPageContextMock

     * Build expectations about interations between the widget code
     * and its environment, accessible by way of protocol. 
     */   
    protected DOMProtocol buildExpectations(DOMProtocol protocol) {

         MarinerPageContextMock pageCtxMock = new MarinerPageContextMock(
                "pageCtx", expectations);       
        EnvironmentContextMock envCtxMock = new EnvironmentContextMock(
                "envCtx", expectations);
        VolantisMock volantisMock = new VolantisMock(
                "volantis", expectations);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

    // javadoc inherited
    protected void setUp() throws Exception {
        super.setUp();

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

        formatReferenceFinderMock = new FormatReferenceFinderMock(
                "formatReferenceFinderMock", expectations);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

            protocolMock =
                    new VolantisProtocolMock(
                            "protocolMock", expectations,
                            protocolConfig);

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

        if (stylingEngineMock != null) {
            pageContextMock.expects.getStylingEngine().returns(
                    stylingEngineMock).any();
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        elementStyles = stylingFactory.createStyles(null);

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

Examples of com.volantis.mcs.context.MarinerPageContextMock

    /**
     * get a mariner page context mock
     * @return
     */
    private MarinerPageContext getMarinerPageContext() {
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("pageContext", expectations);

        pageContext.expects.initialisedCanvas().returns(false);
        // todo: later: this should return a real project object so that we
        // can avoid using test specific code paths within the code.
        pageContext.expects.getCurrentProject().returns(null);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

        try {
            XDIMEAttributesMock xdimeAttributes = new XDIMEAttributesMock(
                "xdimeAttributes", expectations);
            XDIMEAttributesMock groupAttributes = new XDIMEAttributesMock(
                "groupAttributes", expectations);
            MarinerPageContextMock pageContext = new MarinerPageContextMock(
                    "pageContext", expectations);
            StylesMock styles = new StylesMock("styles", expectations);
            MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                    "values", expectations);
            DeviceLayoutContextMock dlc =
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        elementStyles = stylingFactory.createStyles(null);

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

Examples of com.volantis.mcs.context.MarinerPageContextMock

        super.setUp();

        context = new XDIMEContextInternalMock("context", expectations);
        requestContext =
                new MarinerRequestContextMock("requestContext", expectations);
        pageContext = new MarinerPageContextMock("pageContext", expectations);
        parentOutputState = new ElementOutputStateMock("parent", expectations);
        parent = new XDIMEElementInternalMock("parent", expectations);
        containerInstance = new ContainerInstanceImplMock("containerInstance",
                expectations, NDimensionalIndex.ZERO_DIMENSIONS);
        layoutContext = new DeviceLayoutContextMock("layoutContext",
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

        super.setUp();
        // create mock objects
        context = new XDIMEContextInternalMock("context", expectations);
        requestContext = new MarinerRequestContextMock(
                "requestContext", expectations);
        pageContext = new MarinerPageContextMock("pageContext", expectations);
        ProtocolConfigurationImplMock protocolConfig =
                new ProtocolConfigurationImplMock(
                        "protocolConfig", expectations);
        protocol = new VolantisProtocolMock(
                "protocolMock", expectations, protocolConfig);
View Full Code Here

Examples of com.volantis.mcs.context.MarinerPageContextMock

    }

    private MarinerRequestContextMock getMarinerRequestContextMock() {

        pageContextMock =
            new MarinerPageContextMock("pageContextMock", expectations);
        final MarinerRequestContextMock requestContextMock =
            new MarinerRequestContextMock("requestContextMock", expectations);
        final VolantisMock volantisBeanMock =
            new VolantisMock("volantisMock", expectations);
        final ProjectManagerMock projectManagerMock =
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.