Examples of OptionGroupModel


Examples of org.apache.tapestry5.OptionGroupModel

    public void map_contructor_retains_map()
    {
        List<OptionModel> options = Collections.emptyList();
        Map<String, String> attributes = Collections.emptyMap();

        OptionGroupModel group = new OptionGroupModelImpl("Label", true, options, attributes);

        assertSame(group.getAttributes(), attributes);
    }
View Full Code Here

Examples of org.apache.tapestry5.OptionGroupModel

    @Test
    public void strings_contructor_builds_map()
    {
        List<OptionModel> options = Collections.emptyList();

        OptionGroupModel group = new OptionGroupModelImpl("Label", true, options, "fred",
                                                          "flintstone", "barney", "rubble");

        Map<String, String> attributes = group.getAttributes();

        assertEquals(attributes.size(), 2);
        assertEquals(attributes.get("fred"), "flintstone");
        assertEquals(attributes.get("barney"), "rubble");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.