use of org.kie.workbench.common.screens.library.client.settings.sections.knowledgebases.item.KnowledgeBaseItemPresenter 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();
}
use of org.kie.workbench.common.screens.library.client.settings.sections.knowledgebases.item.KnowledgeBaseItemPresenter in project kie-wb-common by kiegroup.
the class KnowledgeSessionsModalTest method testSetup.
@Test
public void testSetup() {
final KnowledgeBaseItemPresenter parentPresenter = mock(KnowledgeBaseItemPresenter.class);
doReturn(new KBaseModel()).when(parentPresenter).getObject();
doNothing().when(knowledgeSessionsModal).superSetup();
doNothing().when(knowledgeSessionsModal).setWidth(any());
knowledgeSessionsModal.setup(parentPresenter);
verify(knowledgeSessionsModal).superSetup();
verify(knowledgeBasesListPresenter).setup(any(), any(), any());
}
use of org.kie.workbench.common.screens.library.client.settings.sections.knowledgebases.item.KnowledgeBaseItemPresenter in project kie-wb-common by kiegroup.
the class PackageItemPresenterTest method testRemove.
@Test
public void testRemove() {
final KnowledgeBaseItemPresenter parentPresenter = mock(KnowledgeBaseItemPresenter.class);
final PackageListPresenter listPresenter = mock(PackageListPresenter.class);
packageItemPresenter.parentPresenter = parentPresenter;
packageItemPresenter.setListPresenter(listPresenter);
packageItemPresenter.remove();
verify(listPresenter).remove(eq(packageItemPresenter));
verify(parentPresenter).fireChangeEvent();
}
Aggregations