Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContextMock


            throws PAPIException, RepositoryException {

        // Create test objects.
        XFFormElementImplMock formElement =
                new XFFormElementImplMock("formElement", expectations);
        MarinerRequestContextMock requestContext =
                new MarinerRequestContextMock("requestContext", expectations);
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("requestContext", expectations);
        FormDescriptorMock fd = new FormDescriptorMock("descriptor", expectations);

        privateSetUp();
View Full Code Here


        volantisMock = new VolantisMock("volantisMock", expectations);

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

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

        jdbcRepositoryMock = new LocalRepositoryMock(
                "jdbcRepositoryMock", expectations);
View Full Code Here

    // Javadoc inherited.
    protected void setUp() throws Exception {
        super.setUp();
        menuElement = (MenuElementImpl) createTestablePAPIElement();
        requestContext = new MarinerRequestContextMock("requestContext",
                expectations);
        pageContext = new MarinerPageContextMock("pageContext", expectations);
        properties = new ShortcutPropertiesMock("properties", expectations);
    }
View Full Code Here

        final CurrentProjectProviderMock projectProviderMock =
                new CurrentProjectProviderMock("projectProviderMock",
                        expectations);

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

        marinerApplicationMock = new MarinerApplicationMock(
                "marinerApplicationMock", expectations);
View Full Code Here

    protected void setUp() throws Exception {
        super.setUp();
       
        // Create basic mocks
        marinerPageContextMock =  new MarinerPageContextMock("marinerPageContextMock", expectations);
        requestContextMock =  new MarinerRequestContextMock("requestContextMock", expectations);
        volantisMock = new VolantisMock("volantisMock", expectations);
        environmentContextMock = new EnvironmentContextMock("environmentContextMock", expectations);
       
        // Interconnect mocks
        marinerPageContextMock
View Full Code Here

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

        context = new XDIMEContextInternalMock("context", expectations);
        requestContext =
                new MarinerRequestContextMock("requestContext", expectations);
        pageContext = new MarinerPageContextMock("pageContext", expectations);
        containerInstance = new ContainerInstanceMock("containerInstance",
                expectations);
        layoutContext = new DeviceLayoutContextMock("layoutContext",
                expectations);
View Full Code Here

    private MarinerRequestContextMock getMarinerRequestContextMock() {

        final MarinerPageContextMock pageContextMock =
            new MarinerPageContextMock("pageContextMock", expectations);
        final MarinerRequestContextMock requestContextMock =
            new MarinerRequestContextMock("requestContextMock", expectations);

        final DOMProtocol protocol = createProtocol();
        protocol.setMarinerPageContext(pageContextMock);

        requestContextMock.expects.
View Full Code Here

        super.setUp();

//        context = new XDIMEContextImpl();
        final XDIMEContextInternalMock contextMock =
            new XDIMEContextInternalMock("contextMock", expectations);
        final MarinerRequestContextMock requestContext =
            new MarinerRequestContextMock("requestContext", expectations);
        contextMock.expects.getCurrentElement().returns(null);
        contextMock.expects.getInitialRequestContext().returns(requestContext);
       
        final EnvironmentContextMock environmentContextMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
View Full Code Here

        // Create test objects.
        XFormBuilderMock builderMock =
                new XFormBuilderMock("builder", expectations);
        XDIMEContextImpl context = new XDIMEContextImpl();
        MarinerRequestContextMock requestContext =
                new MarinerRequestContextMock("requestContext", expectations);
        MarinerPageContextMock pageContext =
                new MarinerPageContextMock("pageContext", expectations);

        // Set expectations.
        context.setInitialRequestContext(requestContext);
View Full Code Here

    protected void setUp() throws Exception {
       
        // Let the base class create basic mocks
        super.setUp();       
        XDIMEContentHandler handler = getXDIMEContentHandler();
        MarinerRequestContextMock context =
            (MarinerRequestContextMock)handler.getCurrentRequestContext();
        ApplicationContext appContext = new ApplicationContext(context);
       
        context.expects.getApplicationContext().returns(appContext);
View Full Code Here

TOP

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

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.