FormTester doesn't update input models
--------------------------------------
Key: WICKET-83
URL: http://issues.apache.org/jira/browse/WICKET-83
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.2.3
Reporter: Dmitry Kandalov
Priority: Minor
public Page()
{
final Form form = new Form( "form" );
form.add( new TextField( "name", new Model( "some input" ) ).setRequired(
true ) );
add( form );
}
public void test()
{
tester.startPage( Page.class );
tester.newFormTester( "form" ).submit();
tester.newFormTester( "form" ).submit();
tester.assertNoErrorMessage(); // <--- test fails here, because "name"
model is null
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira