@Test public void testRemove() { final PersistencePresenter parentPresenter = mock(PersistencePresenter.class); final PersistableDataObjectsListPresenter listPresenter = mock(PersistableDataObjectsListPresenter.class); persistableDataObjectsItemPresenter.parentPresenter = parentPresenter; persistableDataObjectsItemPresenter.setListPresenter(listPresenter); persistableDataObjectsItemPresenter.remove(); verify(listPresenter).remove(eq(persistableDataObjectsItemPresenter)); verify(parentPresenter).fireChangeEvent(); }
public void remove() { super.remove(); parentPresenter.fireChangeEvent(); }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  PersistableDataObjectsItemPresenter(final View view); }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  PersistableDataObjectsItemPresenter(final View view); PersistableDataObjectsItemPresenter setup(final PersistableDataObject className,
                                                     final PersistencePresenter parentPresenter); void onClassNameChange(final String className); @Override PersistableDataObject getObject(); void remove(); View getView(); }
PersistableDataObjectsItemPresenter extends ListItemPresenter<PersistableDataObject, PersistencePresenter, PersistableDataObjectsItemPresenter.View> { public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  PersistableDataObjectsItemPresenter(final View view); PersistableDataObjectsItemPresenter setup(final PersistableDataObject className,
                                                     final PersistencePresenter parentPresenter); void onClassNameChange(final String className); @Override PersistableDataObject getObject(); void remove(); View getView();  }