Examples of ValueConverter


Examples of org.apache.tapestry.coerce.ValueConverter

        Throwable t = new ApplicationRuntimeException("No such component.");

        component.getComponent("foo");
        cc.setThrowable(t);

        ValueConverter vc = newValueConverter();

        Location l = newLocation();

        replayControls();
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

public class TestLiteralBinding extends BindingTestCase
{
    public void testGetObject()
    {
        Location l = fabricateLocation(22);
        ValueConverter vc = newValueConverter();

        replayControls();

        LiteralBinding b = new LiteralBinding("parameter foo", vc, l, "literal-value");
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

    }

    public void testToString()
    {
        Location l = fabricateLocation(22);
        ValueConverter vc = newValueConverter();

        replayControls();

        LiteralBinding b = new LiteralBinding("parameter foo", vc, l, "literal-value");
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

    }

    public void testGetObjectWithClass()
    {
        MockControl control = newControl(ValueConverter.class);
        ValueConverter vc = (ValueConverter) control.getMock();

        Date date = new Date();

        vc.coerceValue("my-literal", Date.class);
        control.setReturnValue(date);

        replayControls();

        LiteralBinding b = new LiteralBinding("parameter foo", vc, fabricateLocation(99),
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

    }

    public void testGetObjectException()
    {
        MockControl control = newControl(ValueConverter.class);
        ValueConverter vc = (ValueConverter) control.getMock();

        Exception innerException = new RuntimeException("Failure");

        vc.coerceValue("my-literal", Date.class);
        control.setThrowable(innerException);

        replayControls();

        Location location = fabricateLocation(99);
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

    }

    public void testSetObject()
    {
        Location l = fabricateLocation(22);
        ValueConverter vc = newValueConverter();

        replayControls();

        LiteralBinding b = new LiteralBinding("parameter foo", vc, l, "literal-value");
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

{

    public void testCreate()
    {
        IComponent component = (IComponent) newMock(IComponent.class);
        ValueConverter vc = newValueConverter();

        replayControls();

        MessageBinding b = new MessageBinding("param", vc, fabricateLocation(12), component, "key");
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

    public void testToString()
    {
        MockControl control = newControl(IComponent.class);
        IComponent component = (IComponent) control.getMock();
        ValueConverter vc = newValueConverter();

        component.getExtendedId();
        control.setReturnValue("Foo/bar.baz");

        replayControls();
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

        Messages m = (Messages) mc.getMock();

        MockControl control = newControl(IComponent.class);
        IComponent component = (IComponent) control.getMock();

        ValueConverter vc = newValueConverter();

        component.getMessages();
        control.setReturnValue(m);

        m.getMessage("key");
View Full Code Here

Examples of org.apache.tapestry.coerce.ValueConverter

{
    /** @since 3.0 * */

    public void testListenerBindingObject()
    {
        ValueConverter vc = newValueConverter();

        IComponent c = newComponent();

        BSFManagerFactory mf = (BSFManagerFactory) newMock(BSFManagerFactory.class);

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.