Package org.apache.tapestry.multipart

Examples of org.apache.tapestry.multipart.ValuePart


public class TestMultipart extends TapestryTestCase
{

    public void testSingle()
    {
        ValuePart p = new ValuePart("first");

        assertEquals(1, p.getCount());
        assertEquals("first", p.getValue());

        checkList("values", new String[]
        { "first" }, p.getValues());
    }
View Full Code Here


        { "first" }, p.getValues());
    }

    public void testTwo()
    {
        ValuePart p = new ValuePart("alpha");

        p.add("beta");

        assertEquals(2, p.getCount());
        assertEquals("alpha", p.getValue());
        checkList("values", new String[]
        { "alpha", "beta" }, p.getValues());
    }
View Full Code Here

        { "alpha", "beta" }, p.getValues());
    }

    public void testThree()
    {
        ValuePart p = new ValuePart("moe");
        p.add("larry");
        p.add("curly");

        checkList("values", new String[]
        { "moe", "larry", "curly" }, p.getValues());
    }
View Full Code Here

public class TestMultipart extends TapestryTestCase
{

    public void testSingle()
    {
        ValuePart p = new ValuePart("first");

        assertEquals(1, p.getCount());
        assertEquals("first", p.getValue());

        checkList("values", new String[]
        { "first" }, p.getValues());
    }
View Full Code Here

        { "first" }, p.getValues());
    }

    public void testTwo()
    {
        ValuePart p = new ValuePart("alpha");

        p.add("beta");

        assertEquals(2, p.getCount());
        assertEquals("alpha", p.getValue());
        checkList("values", new String[]
        { "alpha", "beta" }, p.getValues());
    }
View Full Code Here

        { "alpha", "beta" }, p.getValues());
    }

    public void testThree()
    {
        ValuePart p = new ValuePart("moe");
        p.add("larry");
        p.add("curly");

        checkList("values", new String[]
        { "moe", "larry", "curly" }, p.getValues());
    }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.multipart.ValuePart

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.