Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerPageContextMock


        assertNotEquals(currentFormFragment, newFormFragment);
        assertEquals(1, model.getNestingDepth());
    }

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


        assertEquals(currentFormFragment, newFormFragment);
        assertEquals(2, model.getNestingDepth());
    }

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

        assertEquals(2, model.getNestingDepth());
        assertEquals(1, model.getFormFragments().size());
    }

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

        assertEquals(0, model.getNestingDepth());
    }

    public void testPopGroupWhenNestedAndDoesNotFragment() {
        // 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);
View Full Code Here

        assertEquals(currentFormFragment, model.getCurrentFormFragment());
        assertEquals(1, model.getNestingDepth());
    }

    public void testPopGroupWhenNestedAndDoesFragment() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);
        StylesMock styles = new StylesMock("styles", expectations);
View Full Code Here

    /**
     * Test that the first form fragment is created properly.
     */
    public void testCreateFormFragment() {
        MarinerPageContextMock pageContext = new MarinerPageContextMock(
                "pageContext", expectations);
        DeviceLayoutContextMock dlc =
                    new DeviceLayoutContextMock("dlc", expectations);

        // Set expectations.
View Full Code Here

        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

                "application", expectations);

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

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

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

        environmentContext = new EnvironmentContextMock(
View Full Code Here

     * @throws Throwable if a problem occurs.
     */
    public void testSetShortcutPropertiesOnBuilder() throws Throwable {

        // set up the mocks
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("pageContext", expectations);

        MenuModelBuilderMock menuModelBuilder =
                new MenuModelBuilderMock("menuModelBuilder",
                                         expectations);

View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();

        expectations = mockFactory.createUnorderedBuilder();

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

        protocolSupportFactoryMock = new ProtocolSupportFactoryMock(
                "protocolSupportFactoryMock", expectations);
View Full Code Here

TOP

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

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.