Package com.volantis.mcs.protocols.assets.implementation

Examples of com.volantis.mcs.protocols.assets.implementation.AssetResolverMock


        FormatReference ITEM2_PANE
                = new FormatReference("item2",
                                      NDimensionalIndex.ZERO_DIMENSIONS);

        final AssetResolverMock assetResolverMock =
                new AssetResolverMock("assetResolverMock", expectations);

        final TestRendererContext rendererContext = new TestRendererContext(
                assetResolverMock);
        TestDeprecatedOutputLocator outputLocator
                = new TestDeprecatedOutputLocator();
View Full Code Here


     * Creates an asset resolver that can be used in the testing.
     *
     * @return an asset resolver for the testing
     */
    protected AssetResolver createAssetResolver() {
        return new AssetResolverMock("assetResolverMock", expectations);
    }
View Full Code Here

        //
        // Calculate the actual value of a menu rendering.
        //

        final AssetResolverMock assetResolverMock =
                new AssetResolverMock("assetResolverMock", expectations);

        // Create the related test/mock objects.
        TestRendererContext context =
                new TestRendererContext(assetResolverMock);
       
View Full Code Here

        OutputBufferFactory outputBufferFactory
                = new TestDOMOutputBufferFactory();
        MenuItemRendererFactory itemRendererFactory
                = new TestMenuItemRendererFactory(outputBufferFactory);
        AssetResolver assetResolver = new AssetResolverMock("assetResolverMock",
                expectations);
        MenuSeparatorRendererFactory separatorRendererFactory
                = new TestMenuSeparatorRendererFactory();

        separatorRendererSelector
View Full Code Here

     * in the test subject.
     *
     * @return an asset resolver for use by the test subject
     */
    protected AssetResolver createAssetResolver() {
        return new AssetResolverMock("assetResolverMock", expectations);
    }
View Full Code Here

        testRequestContext.setApplicationContext(applicationContext);

        context.pushRequestContext(testRequestContext);

        final AssetResolverMock assetResolverMock =
                new AssetResolverMock("assetResolverMock", expectations);
        PrivateAccessor.setField(context, "assetResolver", assetResolverMock);

        // set up the ImageAsset
        ImageAsset imageAsset = new ConvertibleImageAsset();
        imageAsset.setValue("rotatingWorld.gif");
View Full Code Here

        testRequestContext.setApplicationContext(applicationContext);

        context.pushRequestContext(testRequestContext);

        final AssetResolverMock assetResolverMock =
                new AssetResolverMock("assetResolverMock", expectations);
        PrivateAccessor.setField(context, "assetResolver", assetResolverMock);

        // set up the ImageAsset
        ImageAsset imageAsset = new ConvertibleImageAsset();
        imageAsset.setValue("rotatingWorld{$index}.gif");
View Full Code Here

        DefaultMenuSeparatorRendererSelector menuSeparatorRendererSelector =
                new DefaultMenuSeparatorRendererSelector(
                        new ShardLinkMenuSeparatorRendererFactory(
                                new TestSimpleMenuSeparatorRendererFactory()),
                        new AssetResolverMock("assetResolverMock", expectations),
                        new DefaultStylePropertyResolver(null, null));

        // Create the Renderers which will render the shard link Menu
        SeparatorRenderer orientationSeparator
                = menuSeparatorRendererSelector.selectMenuSeparator(menu);
View Full Code Here

    private AssetResolverMock assetResolverMock;

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

        assetResolverMock = new AssetResolverMock("assetResolverMock",
                expectations);

        RendererContext rendererContext =
                new TestRendererContext(assetResolverMock);
        DeprecatedOutputLocator outputLocator
View Full Code Here

* Tests for the ScriptLibraryManager class
*/
public class ScriptLibraryManagerTestCase extends TestCaseAbstract {

    public void testDuplicates() {
        final AssetResolverMock assetResolverMock =
            new AssetResolverMock("AssetResolverMock", expectations);

        final DOMProtocolMock protocolMock =
            new DOMProtocolMock("DOMProtocolMock", expectations,
                new DefaultProtocolSupportFactory(), null);
        protocolMock.expects.pushHeadBuffer().any();
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.assets.implementation.AssetResolverMock

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.