Search in sources :

Example 1 with PropertiesListPresenter

use of org.kie.workbench.common.screens.library.client.settings.sections.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();
}
Also used : PropertiesListPresenter(org.kie.workbench.common.screens.library.client.settings.sections.persistence.PersistencePresenter.PropertiesListPresenter) PersistencePresenter(org.kie.workbench.common.screens.library.client.settings.sections.persistence.PersistencePresenter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 PersistencePresenter (org.kie.workbench.common.screens.library.client.settings.sections.persistence.PersistencePresenter)1 PropertiesListPresenter (org.kie.workbench.common.screens.library.client.settings.sections.persistence.PersistencePresenter.PropertiesListPresenter)1