Examples of DeviceLayoutContextMock


Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

        requestContext =
                new MarinerRequestContextMock("requestContext", expectations);
        pageContext = new MarinerPageContextMock("pageContext", expectations);
        containerInstance = new ContainerInstanceMock("containerInstance",
                expectations);
        layoutContext = new DeviceLayoutContextMock("layoutContext",
                expectations);
        regionInstance = new RegionInstanceMock("regionInstance", expectations,
                NDimensionalIndex.ZERO_DIMENSIONS);

        FRAG_LINK_LABEL = new OutputBufferMock("FRAG_LINK_LABEL", expectations);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

            new MarinerRequestContextMock("requestContextMock", expectations);
        final CanvasLayoutMock canvasLayoutMock = new CanvasLayoutMock(
                "canvasLayoutMock", expectations);
        fragmentMock = LayoutTestHelper.createFragmentMock(
            "fragmentMock", expectations, canvasLayoutMock);
        final DeviceLayoutContextMock deviceLayoutContextMock =
            new DeviceLayoutContextMock("deviceLayoutContextMock", expectations);
        fragmentInstance =
            new FragmentInstance(NDimensionalIndex.ZERO_DIMENSIONS);
        final RuntimeDeviceLayoutMock runtimeDeviceLayoutMock =
            new RuntimeDeviceLayoutMock("runtimeDeviceLayoutMock", expectations);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

            MarinerPageContextMock pageContext = new MarinerPageContextMock(
                    "pageContext", expectations);
            StylesMock styles = new StylesMock("styles", expectations);
            MutablePropertyValuesMock values = new MutablePropertyValuesMock(
                    "values", expectations);
            DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);

            groupAttributes.expects.getValue("", XDIMEAttribute.REF.toString()).
                returns(null);

            groupAttributes.expects.getValue("", XDIMEAttribute.MODEL.toString()).
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

        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",
                expectations);
        final CanvasLayoutMock layout = new CanvasLayoutMock(
                "layout", expectations);
        format = LayoutTestHelper.createFormatMock(
                "format", expectations, layout);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

        pageCtxMock.expects.popContainerInstance(regionMock);                                        

        pageCtxMock
          .expects.popOutputBuffer(outputBuffer);
               
        DeviceLayoutContextMock deviceLayoutCtxMock =
            new DeviceLayoutContextMock("deviceLayoutCtxMock", expectations);

        pageCtxMock
            .expects.getDeviceLayoutContext()
            .returns(deviceLayoutCtxMock);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

    }

    public void testPushFirstGroup() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);

        setMCSBreakAfterExpectation(styles, MCSBreakAfterKeywords.NEVER, 1);
        pageContext.expects.getDeviceLayoutContext().returns(dlc);
            dlc.expects.getInclusionPath().returns(null);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

    }

    public void testPushSecondOuterGroup() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);

        setMCSBreakAfterExpectation(styles, MCSBreakAfterKeywords.ALWAYS, 2);
        pageContext.expects.getDeviceLayoutContext().returns(dlc).fixed(2);
        dlc.expects.getInclusionPath().returns(null).fixed(2);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

    }

    public void testPushNestedGroupWhenLastCausesFragmentation() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);

        setMCSBreakAfterExpectation(styles, MCSBreakAfterKeywords.ALWAYS, 2);
        pageContext.expects.getDeviceLayoutContext().returns(dlc).fixed(2);
        dlc.expects.getInclusionPath().returns(null).fixed(2);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

    }

    public void testPushNestedGroupWhenLastDoesNotCauseFragmentation() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);

        setMCSBreakAfterExpectation(styles, MCSBreakAfterKeywords.NEVER, 2);
        pageContext.expects.getDeviceLayoutContext().returns(dlc).fixed(2);
        dlc.expects.getInclusionPath().returns(null).fixed(2);
View Full Code Here

Examples of com.volantis.mcs.protocols.DeviceLayoutContextMock

    }

    public void testPopGroupWhenNotNested() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);

        setMCSBreakAfterExpectation(styles, MCSBreakAfterKeywords.NEVER, 1);
        pageContext.expects.getDeviceLayoutContext().returns(dlc);
        dlc.expects.getInclusionPath().returns(null);
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.