Package org.apache.tapestry.form

Examples of org.apache.tapestry.form.LabeledPropertySelectionModel


*/
public class TestLabeledPropertySelectionModel extends TapestryTestCase
{
    public void testEmptyModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel();
       
        validateLabel(model, "", null, "");
       
        assertEquals(model.getOptionCount(), 1);
    }
View Full Code Here


        assertEquals(model.getOptionCount(), 1);
    }
   
    public void testDefaultLabeledModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel());
       
        validateLabel(model, "", null, "");
       
        validateModel(model);
    }
View Full Code Here

    {
        String label = "Select a value";
        Object option = null;
        String value = "-1";
       
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel(), label, option, value);
       
        assertEquals(label, model.getLabel());
        assertEquals(option, model.getOption());
        assertEquals(value, model.getValue());
       
        validateLabel(model, label, option, value);
       
        validateModel(model);
    }
View Full Code Here

*/
public class TestLabeledPropertySelectionModel extends TapestryTestCase
{
    public void testEmptyModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel();
       
        validateLabel(model, "", null, "");
       
        assertEquals(model.getOptionCount(), 1);
    }
View Full Code Here

        assertEquals(model.getOptionCount(), 1);
    }
   
    public void testDefaultLabeledModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel());
       
        validateLabel(model, "", null, "");
       
        validateModel(model);
    }
View Full Code Here

    {
        String label = "Select a value";
        Object option = null;
        String value = "-1";
       
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel(), label, option, value);
       
        assertEquals(label, model.getLabel());
        assertEquals(option, model.getOption());
        assertEquals(value, model.getValue());
       
        validateLabel(model, label, option, value);
       
        validateModel(model);
    }
View Full Code Here

*/
public class TestLabeledPropertySelectionModel extends TapestryTestCase
{
    public void testEmptyModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel();
       
        validateLabel(model, "", null, "");
       
        assertEquals(model.getOptionCount(), 1);
    }
View Full Code Here

        assertEquals(model.getOptionCount(), 1);
    }
   
    public void testDefaultLabeledModel()
    {
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel());
       
        validateLabel(model, "", null, "");
       
        validateModel(model);
    }
View Full Code Here

    {
        String label = "Select a value";
        Object option = null;
        String value = "-1";
       
        LabeledPropertySelectionModel model = new LabeledPropertySelectionModel(createInnerModel(), label, option, value);
       
        assertEquals(label, model.getLabel());
        assertEquals(option, model.getOption());
        assertEquals(value, model.getValue());
       
        validateLabel(model, label, option, value);
       
        validateModel(model);
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.form.LabeledPropertySelectionModel

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.