@LifecycleHandlerType(LifecycleLevel.STOP_BUS) public void stopBus() { externalBus.stop(); } }
@LifecycleHandlerType(LifecycleLevel.STOP_BUS) public void stopBus() { eventBus.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { eventBus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { eventBus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { busService.stop(); }
@AfterMethod(groups = "fast") public void afterMethod() { bus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() { bus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { eventBus.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { busService.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { bus.stop(); stopInvoiceService(invoiceService); } }
@AfterMethod(groups = "fast") public void afterMethod() { service.stop(); bus.stop(); } }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { // Make sure we finish in a clean state assertListenerStatus(); eventBus.unregister(eventsListener); eventBus.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { 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(); }
private void stopBusAndUnregisterListener(final BusService busService, final TestApiListener testListener) throws Exception { busService.getBus().unregister(testListener); busService.getBus().stop(); }