verify(labelMock);
}
private Label expectTheCreatedLabelIsAddedToTheRow(
ICellForDetailItemRenderer<DetailItem, Data> mock) {
Label labelMock = createStrictMock(Label.class);
for (Data d : data) {
for (DetailItem item : detailItems) {
expect(mock.cellFor(isA(DetailItem.class), isA(Data.class)))
.andReturn(labelMock);
labelMock.setParent(isA(Row.class));
}
}
replay(mock, labelMock);
return labelMock;
}