@Test public void onSystemRepositoryChangedEventShouldNotBeTranslatedToAClusterEvent() { when(clusterService.isAppFormerClustered()).thenReturn(false); clusterLibraryObserver.onSystemRepositoryChangedEvent(new SystemRepositoryChangedEvent()); verify(clusterLibraryEvent, never()).fire(any()); }
public void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent) { if (clusterService.isAppFormerClustered()) { clusterLibraryEvent.fire(new ClusterLibraryEvent()); } }
ClusterLibraryObserver { public void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent) { if (clusterService.isAppFormerClustered()) { clusterLibraryEvent.fire(new ClusterLibraryEvent()); } } }
ClusterLibraryObserver { public void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent) { if (clusterService.isAppFormerClustered()) { clusterLibraryEvent.fire(new ClusterLibraryEvent()); } } ClusterLibraryObserver(); @Inject  ClusterLibraryObserver(ClusterService clusterService,
                                  @SpacesUpdated Event<ClusterLibraryEvent> clusterLibraryEvent); }
ClusterLibraryObserver { public void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent) { if (clusterService.isAppFormerClustered()) { clusterLibraryEvent.fire(new ClusterLibraryEvent()); } } ClusterLibraryObserver(); @Inject  ClusterLibraryObserver(ClusterService clusterService,
                                  @SpacesUpdated Event<ClusterLibraryEvent> clusterLibraryEvent); void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent); void onNewOrganizationalUnitEvent(@Observes NewOrganizationalUnitEvent newOrganizationalUnitEvent); void onNewOrganizationalUnitEvent(@Observes ProjectCountUpdate projectCountUpdateEvent); }
ClusterLibraryObserver { public void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent) { if (clusterService.isAppFormerClustered()) { clusterLibraryEvent.fire(new ClusterLibraryEvent()); } } ClusterLibraryObserver(); @Inject  ClusterLibraryObserver(ClusterService clusterService,
                                  @SpacesUpdated Event<ClusterLibraryEvent> clusterLibraryEvent); void onSystemRepositoryChangedEvent(@Observes @OrgUnit final SystemRepositoryChangedEvent systemRepositoryChangedEvent); void onNewOrganizationalUnitEvent(@Observes NewOrganizationalUnitEvent newOrganizationalUnitEvent); void onNewOrganizationalUnitEvent(@Observes ProjectCountUpdate projectCountUpdateEvent);  }