You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Timo Rantalaiho (JIRA)" <ji...@apache.org> on 2008/10/29 11:23:44 UTC
[jira] Commented: (WICKET-1893) Extend FormTester to easily handle
CheckBox components.
[ https://issues.apache.org/jira/browse/WICKET-1893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643456#action_12643456 ]
Timo Rantalaiho commented on WICKET-1893:
-----------------------------------------
Ah, here you have it
formTester.setValue( getCheckboxPath(), "on" ); // check
formTester.setValue( getCheckboxPath(), "off" ); // uncheck
http://www.nabble.com/how-to-unittest-a-checkbox-tt20106917.html#a20130698
> Extend FormTester to easily handle CheckBox components.
> -------------------------------------------------------
>
> Key: WICKET-1893
> URL: https://issues.apache.org/jira/browse/WICKET-1893
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 1.3.5, 1.4-M3
> Reporter: Minto van der Sluis
> Assignee: Timo Rantalaiho
> Priority: Minor
>
> Add methods to the FormTester to support unittesting CheckBox.
> The following methods could be added:
> public boolean getCheckBoxComponentValue(java.lang.String id);
> public void setValue(java.lang.String formComponentId, boolean value);
> When the given component ID is not a CheckBox (or one of its subclasses) then these methods could/should throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.