Package com.volantis.styling

Examples of com.volantis.styling.StylesMock


    MutablePropertyValuesMock values;

    protected void setUp() throws Exception {
        super.setUp();
        model = new XFormModelImpl("ModelID", new EmulatedXFormDescriptor());
        styles = new StylesMock("styles", expectations);
        values = new MutablePropertyValuesMock("values", expectations);
    }
View Full Code Here


    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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

    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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

    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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

    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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

    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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

        // Create test objects.
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);
        StylesMock innerStyles = new StylesMock("innerStyles", expectations);

        // Set expectations.
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
        pageContext.expects.getDeviceLayoutContext().returns(dlc).fixed(2);
        dlc.expects.getInclusionPath().returns(null).fixed(2);
View Full Code Here

    public void testPopGroupWhenNestedAndDoesFragment() {
        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);
        pageContext.expects.updateFormFragmentationState(model.getID()).returns(null);
View Full Code Here

                (DissectingPaneAttributesMock)
                AttributesTestHelper.createMockAttributes(
                        DissectingPaneAttributesMock.class,
                        TAG_NAME, "dissectingPaneAttributesMock", expectations);

        final StylesMock stylesMock =
                new StylesMock("stylesMock", expectations);

        final OutputBufferMock paneContentsMock =
                new OutputBufferMock("paneContentsMock", expectations);

        // =====================================================================
View Full Code Here

        final OutputBufferMock buffer1 = new OutputBufferMock(
                "buffer1", expectations);
        final OutputBufferMock buffer2 = new OutputBufferMock(
                "buffer2", expectations);

        final StylesMock iteratorPaneStylesMock =
                new StylesMock("iteratorPaneStylesMock", expectations);

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

TOP

Related Classes of com.volantis.styling.StylesMock

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.