@AfterMethod(groups = "fast") public void afterMethod() throws Exception { bus.stop(); } }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { bus.stop(); }
@AfterMethod(groups = "fast") public void afterMethod() { if (hasFailed()) { return; } service.stop(); bus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { if (hasFailed()) { return; } eventBus.stop(); // Reset the security manager ThreadContext.unbindSecurityManager(); }
@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(); }
@LifecycleHandlerType(LifecycleHandlerType.LifecycleLevel.STOP_BUS) public void stopBus() { eventBus.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { busService.stop(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { busService.stop(); }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { busService.stop(); }
@AfterMethod(groups = "load") public void afterMethod() throws Exception { eventBus.stop(); }
@AfterMethod(groups = "fast") public void afterMethod() { if (hasFailed()) { return; } bus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() { if (hasFailed()) { return; } bus.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; } bus.stop(); stopInvoiceService(invoiceService); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { if (hasFailed()) { return; } paymentExecutors.stop(); eventBus.stop(); } }
@AfterMethod(groups = "fast") public void afterMethod() throws Exception { if (hasFailed()) { return; } eventBus.stop(); // Reset the security manager ThreadContext.unbindSecurityManager(); }
@AfterMethod(groups = "slow") public void afterMethod() throws Exception { if (hasFailed()) { return; } janitor.stop(); eventBus.stop(); paymentExecutors.stop(); } }
private void stopBusAndUnregisterListener(final BusService busService, final TestApiListener testListener) throws Exception { busService.getBus().unregister(testListener); busService.getBus().stop(); }