Search in sources :

Example 11 with ArchetypeListUpdatedEvent

use of org.kie.workbench.common.screens.archetype.mgmt.shared.events.ArchetypeListUpdatedEvent in project kie-wb-common by kiegroup.

the class ArchetypesSectionPresenterTest method onArchetypeListUpdatedEventWhenTableIsNotSetup.

@Test
public void onArchetypeListUpdatedEventWhenTableIsNotSetup() {
    doReturn(false).when(archetypeTablePresenter).isSetup();
    final ArchetypeListUpdatedEvent event = mock(ArchetypeListUpdatedEvent.class);
    presenter.onArchetypeListUpdatedEvent(event);
    verify(settingsSectionChangeEvent, never()).fire(any());
    verify(notificationEvent, never()).fire(any());
}
Also used : ArchetypeListUpdatedEvent(org.kie.workbench.common.screens.archetype.mgmt.shared.events.ArchetypeListUpdatedEvent) Test(org.junit.Test)

Aggregations

ArchetypeListUpdatedEvent (org.kie.workbench.common.screens.archetype.mgmt.shared.events.ArchetypeListUpdatedEvent)11 Test (org.junit.Test)7 Repository (org.guvnor.structure.repositories.Repository)3 GitRepository (org.guvnor.structure.repositories.impl.git.GitRepository)3 Archetype (org.kie.workbench.common.screens.archetype.mgmt.shared.model.Archetype)3 File (java.io.File)1 GAV (org.guvnor.common.services.project.model.GAV)1 OrganizationalUnit (org.guvnor.structure.organizationalunit.OrganizationalUnit)1 AbstractMavenCommand (org.kie.workbench.common.screens.archetype.mgmt.backend.maven.AbstractMavenCommand)1 KieModule (org.kie.workbench.common.services.shared.project.KieModule)1 Path (org.uberfire.java.nio.file.Path)1 NotificationEvent (org.uberfire.workbench.events.NotificationEvent)1