use of org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.KnowledgeBaseItemPresenter.IncludedKnowledgeBasesListPresenter in project kie-wb-common by kiegroup.
the class IncludedKnowledgeBaseItemPresenterTest method testRemove.
@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();
}
Aggregations