Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.MarinerRequestContextMock


    public void testElementUsedInsideWrongParentElement()
            throws Exception {

        String elementName = "kbd";

        MarinerRequestContextMock requestMock = setupMocks(null, false);

        setupEnvironment(requestMock);

        pushElement(new BodyElement(xdimeContext));
View Full Code Here


        StylesMock stylesMock = new StylesMock("stylesMock", expectations);
        stylesMock
            .expects.getPropertyValues()
            .returns(styleValues).any();    
               
        MarinerRequestContextMock requestMock = setupMocks(elementName, stylesMock);
        setupEnvironment(requestMock);
       
        ProtocolConfigurationMock protocolConfigMock =
            new ProtocolConfigurationMock("protocolConfigMock",
                    expectations);
View Full Code Here

    /**
     * get a mariner request context mock
     * @return
     */
    private MarinerRequestContext getMarinerRequestContext() {
        MarinerRequestContextMock requestContext =
                new MarinerRequestContextMock("requestContext", expectations);

        MarinerPageContext pageContext = getMarinerPageContext();

        requestContext.expects.getMarinerPageContext().
                returns(pageContext).any();
View Full Code Here

        // Setup XDIME processing environment
        pageCtxMock = new MarinerPageContextMock(
                "pageCtxMock", expectations);
       
        MarinerRequestContextMock requestCtxMock = new MarinerRequestContextMock(
                "requestCtxMock", expectations);
        requestCtxMock
            .expects.getMarinerPageContext()
            .returns(pageCtxMock).any();
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);
        parentOutputState = new ElementOutputStateMock("parent", expectations);
        parent = new XDIMEElementInternalMock("parent", expectations);
        containerInstance = new ContainerInstanceImplMock("containerInstance",
                expectations, NDimensionalIndex.ZERO_DIMENSIONS);
View Full Code Here

    // Javadoc inherited.
    protected void setUp() throws Exception {
        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);
View Full Code Here

    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 =
            new ProjectManagerMock("projectManagerMock", expectations);
        final RuntimeProjectMock runtimeProjectMock =
View Full Code Here

    private MarinerRequestContextMock requestContextMock;

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

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

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

        requestContextMock.expects.getMarinerPageContext().
View Full Code Here

        // create environment context mock
        final EnvironmentContextMock environmentCtxMock =
            new EnvironmentContextMock("environmentContextMock", expectations);
        environmentCtxMock.expects.getCachingDirectives().returns(null).any();
        final MarinerRequestContextMock requestCtxMock =
            ((MarinerRequestContextMock) xdimeContext.getInitialRequestContext());
        requestCtxMock.expects.getEnvironmentContext().returns(
            environmentCtxMock).any();
    }
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).fixed(2);
              
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.