use of org.kie.workbench.common.screens.library.client.settings.persistence.PersistencePresenter.PropertiesListPresenter 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