Hi.
I want to unit test a DefaultDataTable that have a column with some check boxes
To achieve this, I have a panel defined as:
<wicket:panel>
<input type="checkbox" wicket:id="select" />
</wicket:panel>
and the table is simply:
<table wicket:id="table border="0">[Table]</table>
and I add this column:
AbstractColumn checkBoxColumn = new AbstractColumn(new
Model("Select")) {
@Override
public void populateItem(Item cellItem, String
componentId, IModel
rowModel) {
cellItem.add(new CheckBoxPanel(componentId,
rowModel));
}
};
it works and all but I do not know how to unit test the code.
The problem is to select a desired checkBox via WicketTester.
I have the same problem if I have a link in the table: how to simulate
the click on, say, link at row 5, column 1?
Thanks for advices.
--
Daniele Dellafiore
http://blog.ildella.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]