use of org.kie.workbench.common.screens.library.client.settings.persistence.PersistencePresenter in project kie-wb-common by kiegroup.
the class PersistableDataObjectsItemPresenterTest method testRemove.
@Test
public void testRemove() {
final PersistencePresenter parentPresenter = mock(PersistencePresenter.class);
final PersistableDataObjectsListPresenter listPresenter = mock(PersistableDataObjectsListPresenter.class);
persistableDataObjectsItemPresenter.parentPresenter = parentPresenter;
persistableDataObjectsItemPresenter.setListPresenter(listPresenter);
persistableDataObjectsItemPresenter.remove();
verify(listPresenter).remove(eq(persistableDataObjectsItemPresenter));
verify(parentPresenter).fireChangeEvent();
}
use of org.kie.workbench.common.screens.library.client.settings.persistence.PersistencePresenter in project kie-wb-common by kiegroup.
the class PropertiesItemPresenterTest method testRemove.
@Test
public void testRemove() {
final PersistencePresenter parentPresenter = mock(PersistencePresenter.class);
final PropertiesListPresenter listPresenter = mock(PropertiesListPresenter.class);
propertiesItemPresenter.parentPresenter = parentPresenter;
propertiesItemPresenter.setListPresenter(listPresenter);
propertiesItemPresenter.remove();
verify(listPresenter).remove(eq(propertiesItemPresenter));
verify(parentPresenter).fireChangeEvent();
}
Aggregations