Search in sources :

Example 1 with NewOrganizationalUnitEvent

use of org.guvnor.structure.organizationalunit.NewOrganizationalUnitEvent in project kie-wb-common by kiegroup.

the class OrganizationalUnitsScreenTest method ouEventsShouldReloadOUs.

@Test
public void ouEventsShouldReloadOUs() {
    presenter.onNewOrganizationalUnitEvent(new NewOrganizationalUnitEvent());
    presenter.onClusterLibraryEvent(new ClusterLibraryEvent());
    presenter.onRemoveOrganizationalUnitEvent(new RemoveOrganizationalUnitEvent());
    verify(presenter, times(3)).setupOrganizationalUnits();
    verify(libraryService, times(3)).getOrganizationalUnits();
}
Also used : ClusterLibraryEvent(org.kie.workbench.common.screens.library.api.cluster.ClusterLibraryEvent) RemoveOrganizationalUnitEvent(org.guvnor.structure.organizationalunit.RemoveOrganizationalUnitEvent) NewOrganizationalUnitEvent(org.guvnor.structure.organizationalunit.NewOrganizationalUnitEvent) Test(org.junit.Test)

Aggregations

NewOrganizationalUnitEvent (org.guvnor.structure.organizationalunit.NewOrganizationalUnitEvent)1 RemoveOrganizationalUnitEvent (org.guvnor.structure.organizationalunit.RemoveOrganizationalUnitEvent)1 Test (org.junit.Test)1 ClusterLibraryEvent (org.kie.workbench.common.screens.library.api.cluster.ClusterLibraryEvent)1