Search in sources :

Example 1 with IncludedKnowledgeBasesListPresenter

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();
}
Also used : IncludedKnowledgeBasesListPresenter(org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.KnowledgeBaseItemPresenter.IncludedKnowledgeBasesListPresenter) KnowledgeBaseItemPresenter(org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.KnowledgeBaseItemPresenter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 KnowledgeBaseItemPresenter (org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.KnowledgeBaseItemPresenter)1 IncludedKnowledgeBasesListPresenter (org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.KnowledgeBaseItemPresenter.IncludedKnowledgeBasesListPresenter)1