@Test public void testRemove() { final KnowledgeBaseItemPresenter parentPresenter = mock(KnowledgeBaseItemPresenter.class); final IncludedKnowledgeBasesListPresenter listPresenter = mock(IncludedKnowledgeBasesListPresenter.class); includedKnowledgeBaseItemPresenter.parentPresenter = parentPresenter; includedKnowledgeBaseItemPresenter.setListPresenter(listPresenter); includedKnowledgeBaseItemPresenter.remove(); verify(listPresenter).remove(eq(includedKnowledgeBaseItemPresenter)); verify(parentPresenter).fireChangeEvent(); }
@Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); @Override IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName,
                                                    final KnowledgeBaseItemPresenter parentPresenter); @Override SingleValueItemObjectModel getObject(); @Override void remove(); void onKnowledgeBaseNamChange(final String name); }
IncludedKnowledgeBaseItemPresenter extends ListItemPresenter<SingleValueItemObjectModel, KnowledgeBaseItemPresenter, IncludedKnowledgeBaseItemPresenter.View> { @Override public void remove() { super.remove(); parentPresenter.fireChangeEvent(); } @Inject  IncludedKnowledgeBaseItemPresenter(final View view); @Override IncludedKnowledgeBaseItemPresenter setup(final SingleValueItemObjectModel knowledgeBaseName,
                                                    final KnowledgeBaseItemPresenter parentPresenter); @Override SingleValueItemObjectModel getObject(); @Override void remove(); void onKnowledgeBaseNamChange(final String name);  }