@Test public void shouldNotCallListenersForOtherTenants() throws Exception { listener.registerListener("otherTenantId", extension); listener.onEvent(hmcResetEvent); verify(extension, never()).onHmcReset(any(PK.class)); }
@Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } }
HmcResetEventListener extends EventDistributor<HybrisAdapter.HmcResetEvent, FireflyExtension> { @Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } } }
HmcResetEventListener extends EventDistributor<HybrisAdapter.HmcResetEvent, FireflyExtension> { @Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } } @Autowired  HmcResetEventListener(ClusterService clusterService,
                                 TenantService tenantService); }
HmcResetEventListener extends EventDistributor<HybrisAdapter.HmcResetEvent, FireflyExtension> { @Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } } @Autowired  HmcResetEventListener(ClusterService clusterService,
                                 TenantService tenantService);  }
HmcResetEventListener extends EventDistributor<HybrisAdapter.HmcResetEvent, FireflyExtension> { @Override protected void onEvent(HybrisAdapter.HmcResetEvent event) { if (!hasListenersForTenant(event.getTenantId())) { return; } for (FireflyExtension fireflyExtension : getListenersForTenant(event.getTenantId())) { fireflyExtension.onHmcReset(event.getMigration()); } } @Autowired  HmcResetEventListener(ClusterService clusterService,
                                 TenantService tenantService);   }