You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ned Collyer <ne...@gmail.com> on 2009/02/24 00:15:12 UTC

Upgrading to 1.4-rc2 - bug with form tester?

Hi,

I have the following - which was working on 1.4-rc1

        FormTester formTester = wicketTester.newFormTester("panel:form");
        formTester.getForm().error("test error");
        formTester.submit();

With 1.4-rc1 this code would not execute the forms onSubmit() method,
because an error had been raised against the form.

With 1.4-rc2, the onSubmit is being executed, which is giving me errors in
my tests - unexpected calls to mock objects.

I've scanned through the changelog and nothing jumps out at me as obviously
effecting this.

Any ideas?
-- 
View this message in context: http://www.nabble.com/Upgrading-to-1.4-rc2---bug-with-form-tester--tp22172382p22172382.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Upgrading to 1.4-rc2 - bug with form tester?

Posted by Ned Collyer <ne...@gmail.com>.
Perhaps this is the problem?

https://issues.apache.org/jira/browse/WICKET-2019

I'll change my test to have an invalid field.


Ned Collyer wrote:
> 
> Hi,
> 
> I have the following - which was working on 1.4-rc1
> 
>         FormTester formTester = wicketTester.newFormTester("panel:form");
>         formTester.getForm().error("test error");
>         formTester.submit();
> 
> With 1.4-rc1 this code would not execute the forms onSubmit() method,
> because an error had been raised against the form.
> 
> With 1.4-rc2, the onSubmit is being executed, which is giving me errors in
> my tests - unexpected calls to mock objects.
> 
> I've scanned through the changelog and nothing jumps out at me as
> obviously effecting this.
> 
> Any ideas?
> 

-- 
View this message in context: http://www.nabble.com/Upgrading-to-1.4-rc2---bug-with-form-tester--tp22172382p22174427.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org