Package org.apache.tapestry

Examples of org.apache.tapestry.IRequestCycle


        verifyControls();
    }

    public void testFoundWithCycleAndParameters()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { new Integer(7) });
        ListenerMethodHolder holder = newHolder();

        holder.wilma(cycle, 7);
View Full Code Here


     * No exact match on parameter count, fall through to the no-arguments method implementation.
     */

    public void testNoParameterMatch()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello", new Integer(7) });
        ListenerMethodHolder holder = newHolder();

        holder.barney();

View Full Code Here

        verifyControls();
    }

    public void testFallbackToJustCycle()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello", new Integer(7) });

        ListenerMethodHolder holder = newHolder();

        holder.pebbles(cycle);
View Full Code Here

    }

    public void testRewinding()
    {
        MockControl cyclec = newControl(IRequestCycle.class);
        IRequestCycle cycle = (IRequestCycle) cyclec.getMock();

        cycle.isRewinding();
        cyclec.setReturnValue(true);

        replayControls();

        FieldLabel fl = (FieldLabel) _creator.newInstance(FieldLabel.class);
View Full Code Here

        verifyControls();
    }

    public void testNoMatch()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello", new Integer(7) });

        replayControls();

        ListenerMethodHolder holder = new ListenerMethodHolder();
View Full Code Here

        verifyControls();
    }

    public void testMismatchedTypes()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello" });

        replayControls();

        ListenerMethodHolder holder = new ListenerMethodHolder();
View Full Code Here

    public void testNoField()
    {
        IValidationDelegate delegate = new MockDelegate();
        IForm form = newForm(delegate);
        IMarkupWriter writer = newWriter();
        IRequestCycle cycle = newCycle(form);

        replayControls();

        FieldLabel fl = (FieldLabel) _creator.newInstance(FieldLabel.class, new Object[]
        { "displayName", "FredFlintstone" });
View Full Code Here

    public void testNoFieldOrDisplayName()
    {
        IForm form = newForm();
        IMarkupWriter writer = newWriter();
        IRequestCycle cycle = newCycle(form);
        Location l = newLocation();
        IBinding binding = newBinding(l);
        IPage page = newPage();

        replayControls();
View Full Code Here

        verifyControls();
    }

    public void testInvocationTargetException()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello", new Integer(7) });

        ListenerMethodHolder holder = new ListenerMethodHolder();

        RuntimeException exception = new IllegalArgumentException("Just for kicks.");
View Full Code Here

        verifyControls();
    }

    public void testInvocationTargetExceptionForApplicationRuntimeException()
    {
        IRequestCycle cycle = newCycle(new Object[]
        { "Hello", new Integer(7) });

        ListenerMethodHolder holder = new ListenerMethodHolder();

        RuntimeException exception = new ApplicationRuntimeException("Just for kicks.");
View Full Code Here

TOP

Related Classes of org.apache.tapestry.IRequestCycle

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.