Package com.volantis.mcs.protocols.css.reference

Examples of com.volantis.mcs.protocols.css.reference.ExternalCSSReference


        cssModule = new XHTMLBasicCSSModule(marinerpageContext);
        cacheManager = new CacheManagerMock("cacheManagerMock", expectations);
        cssCache = new CSSCache(0);
       
        ExternalCSSReference ref = new ExternalCSSReference(
                cssModule, cssCache, cfg, contextPathURL, marinerpageContext);
        String css = "p { background-color:red;}";

        marinerpageContext.expects.getSessionURLRewriter()
                .returns(sessionURLRewriter).any();

        ref.writePlaceHolderMarkup(new DOMOutputBuffer());

        assetResolver.fuzzy.rewriteURLWithPageURLRewriter(mockFactory.expectsAny(),
                                                          PageURLType.STYLE_SHEET)
                .returns(result).any();
       
        ref.updateMarkup(css);
    }
View Full Code Here


        StyleSheetConfiguration configuration =
            volantis.getStyleSheetConfiguration();
        MarinerURL contextPathUrl = context.getEnvironmentContext()
            .getContextPathURL();

        return new ExternalCSSReference(getCSSModule(), cssCache,
                                        configuration, contextPathUrl,
                                        context);
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.css.reference.ExternalCSSReference

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.