use of org.kie.workbench.common.screens.library.client.settings.knowledgebases.item.knowledgesessions.KnowledgeSessionListItemPresenter.ListenersListPresenter in project kie-wb-common by kiegroup.
the class ListenerListItemPresenterTest method testRemove.
@Test
public void testRemove() {
final KnowledgeSessionListItemPresenter parentPresenter = mock(KnowledgeSessionListItemPresenter.class);
final ListenersListPresenter listPresenter = mock(ListenersListPresenter.class);
listenerListItemPresenter.parentPresenter = parentPresenter;
listenerListItemPresenter.setListPresenter(listPresenter);
listenerListItemPresenter.remove();
verify(listPresenter).remove(eq(listenerListItemPresenter));
verify(parentPresenter).fireChangeEvent();
verify(parentPresenter).signalListenerAddedOrRemoved();
}
Aggregations