@LifecycleHandlerType(LifecycleLevel.STOP_SERVICE) public void stop() { try { busService.getBus().unregister(listener); } catch (final EventBusException e) { log.error("Failed to unregister OverdueListener", e); } checkNotifier.stop(); asyncNotifier.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } eventBus.unregister(eventsListener); eventBus.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } service.stop(); bus.unregister(listener); bus.stop(); } }
private void stopBusAndUnregisterListener(final BusService busService, final TestApiListener testListener) throws Exception { busService.getBus().unregister(testListener); busService.getBus().stop(); }
public void unregister() throws EventBusException { deleteObservers(); if (externalBus != null) { externalBus.unregister(this); } }
@LifecycleHandlerType(LifecycleLevel.STOP_SERVICE) public void stop() throws NoSuchNotificationQueue { try { eventBus.unregister(invoiceListener); eventBus.unregister(tagHandler); } catch (PersistentBus.EventBusException e) { throw new RuntimeException("Failed to unregister bus handlers", e); } dateNotifier.stop(); parentInvoiceNotifier.stop(); } }
@LifecycleHandlerType(LifecycleLevel.STOP_SERVICE) public void stop() { try { busService.getBus().unregister(listener); } catch (final EventBusException e) { log.error("Failed to unregister OverdueListener", e); } checkNotifier.stop(); asyncNotifier.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } retryService.stop(); eventBus.unregister(handler); eventBus.unregister(testListener); super.afterMethod(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } externalBus.unregister(publicListener); super.afterMethod(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } externalBus.unregister(publicListener); super.afterMethod(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } lifecycle.fireShutdownSequencePriorEventUnRegistration(); busService.getBus().unregister(busHandler); lifecycle.fireShutdownSequencePostEventUnRegistration(); log.debug("afterMethod callcontext classLoader = " + (Thread.currentThread().getContextClassLoader() != null ? Thread.currentThread().getContextClassLoader().toString() : "null")); log.debug("DONE WITH TEST"); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } eventBus.unregister(eventsListener); eventBus.stop(); }
private void stopBusAndUnregisterListener(final BusService busService, final TestApiListener testListener) throws Exception { busService.getBus().unregister(testListener); busService.getBus().stop(); }
private void stopBusAndUnregisterListener(final BusService busService, final TestApiListener testListener) throws Exception { busService.getBus().unregister(testListener); busService.getBus().stop(); }