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

Examples of com.volantis.mcs.protocols.menu.shared.model.MenuLabelStub


    public void testInner() throws Exception {

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));
        item.setTitle("the title");
       
        // Create the renderer we are to test.
View Full Code Here


    public void testOuter() throws Exception {

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
       
        // Create the renderer we are to test.
        MenuItemBracketingRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
View Full Code Here

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = new ConcreteElementDetails();
        elementDetails.setElementName("the tag name");
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
       
        // Create the renderer we are to test.
        MenuItemBracketingRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
View Full Code Here

        // Create the menu item for the test
        ConcreteElementDetails elementDetails = new ConcreteElementDetails();
        elementDetails.setElementName(elementTagName);
        elementDetails.setStyles(StylesBuilder.getEmptyStyles());
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setSegment("anotherframe");

        // Create the renderer to test
        MenuItemBracketingRenderer renderer =
View Full Code Here

    public void testMCSAttributesAnnotatedWithStyles() throws Exception {

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item =
                new ConcreteMenuItem(elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("http://www.bbc.co.uk"));

        // Create the renderer we are to test.
        DefaultAnchorMenuItemRenderer renderer =
                new DefaultAnchorMenuItemRenderer(
View Full Code Here

        // Create the menu item to test.
        final ConcreteElementDetails elementDetails =
                createTestElementDetails();
        final ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));

        // Create the renderer we are to test.
        final TestDeprecatedExternalLinkOutput externalLinkOutput =
View Full Code Here

     */
    public void testNullHref() throws Exception {

        // Create the menu item to test.
        ConcreteMenuItem item = new ConcreteMenuItem(
                new ElementDetailsStub(), new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference(null));
        item.setShortcut(new LiteralTextAssetReference("the shortcut"));

        // Check that the renderer did not open any output.
        checkUnopened(item);
View Full Code Here

     */
    public void testNullShortcut() throws Exception {

        // Create the menu item to test.
        ConcreteMenuItem item = new ConcreteMenuItem(
                new ElementDetailsStub(), new MenuLabelStub());
        item.setHref(new LiteralLinkAssetReference("the href"));
        item.setShortcut(null);

        // Check that the renderer did not open any output.
        checkUnopened(item);
View Full Code Here

    public void testBasics() throws Exception {

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());
       
        // Create the renderer we are to test.
        DefaultSpanMenuItemRenderer renderer =
                new DefaultSpanMenuItemRenderer(
                        new TestDeprecatedSpanOutput());
View Full Code Here

    public void testMCSAttributesAnnotatedWithStyles() throws Exception {

        // Create the menu item to test.
        ConcreteElementDetails elementDetails = createTestElementDetails();
        ConcreteMenuItem item = new ConcreteMenuItem(
                elementDetails, new MenuLabelStub());

        // Create the renderer we are to test.
        DefaultSpanMenuItemRenderer renderer =
                new DefaultSpanMenuItemRenderer(
                        new TestDeprecatedSpanOutput());
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.menu.shared.model.MenuLabelStub

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.