use of org.jowidgets.cap.common.api.bean.IBeanDtosClearUpdate in project jo-client-platform by jo-source.
the class BeanTableModelImplTest method testClearUpdateClears.
@Test
public void testClearUpdateClears() {
tableModel.load();
triggerPageLoading();
final IUpdatableResultCallback<IBeanDtosUpdate, List<IBeanDto>> updatableCallback = assertUpdatableResultCallback(resultCallback);
updatableCallback.finished(new ArrayList<IBeanDto>());
updatableCallback.update(new BeanDtosInsertionUpdate(Arrays.asList((IBeanDto) bean1, (IBeanDto) bean2)));
updatableCallback.update(new IBeanDtosClearUpdate() {
});
final int size = tableModel.getSize();
assertTrue("table should be clear but " + size + " bean(s) remained", size == 0);
}
Aggregations