Package com.volantis.mcs.protocols.menu.shared.renderer

Examples of com.volantis.mcs.protocols.menu.shared.renderer.TestMenuBufferLocator


                        new DefaultStylePropertyResolver(null, null));

        // Create the Renderers which will render the shard link Menu
        SeparatorRenderer orientationSeparator
                = menuSeparatorRendererSelector.selectMenuSeparator(menu);
        TestMenuBufferLocator locator
                = new TestMenuBufferLocator(orientationSeparator);

        MenuItemRendererSelector menuItemRendererSelector =
                new DefaultMenuItemRendererSelector(menuItemRendererFactory,
                        menuSeparatorRendererSelector);
        // @todo delete ShardLinkMenuRenderer and TestMenuRenderer
        // and replace with ShardLinkMenuBracketingRenderer and
        // DefaultMenuRenderer.
        ShardLinkMenuRenderer menuRenderer =
                new ShardLinkMenuRenderer(locator,
                        new TestMenuRenderer(menuItemRendererSelector,
                                menuSeparatorRendererSelector, locator));

        // Render the menu.
        menuRenderer.render(menu);
        String actual = locator.getOutput();
        //System.out.println(actual);

        // Create the expected results from the test data.
        String expected =
            "<SHARD-LINK-GROUP " +
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.shared.renderer.TestMenuBufferLocator

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.