@AfterClass protected void tearDownControllerTest() { greenMail.stop(); }
@AfterClass protected void tearDownEmailTest() { greenMail.stop(); }
@AfterEach void stopGreenMailInstance() { if (greenMail != null) { greenMail.stop(); } }
@AfterEach void stopGreenMailInstance() { if (greenMail != null) { greenMail.stop(); } }
greenMail.stop();
/** * Invoked by a BeanFactory on destruction of a singleton. * * @throws Exception in case of shutdown errors. Exceptions will get logged but not rethrown to * allow other beans to release their resources too. */ @Override public void destroy() throws Exception { greenMail.stop(); }
@Override public void cleanup() { if (greenMail != null) { greenMail.stop(); } }
/** * Invoked by a BeanFactory on destruction of a singleton. * * @throws Exception in case of shutdown errors. Exceptions will get logged but not rethrown to * allow other beans to release their resources too. */ @Override public void destroy() throws Exception { greenMail.stop(); }
/** Stops the server. */ public void stop() { synchronized (greenMail) { if (started) { greenMail.stop(); started = false; } else { log.warn("Can not stop server (not started)."); } } }
public static synchronized void stopEmailServer() { log.debug( "Stoping e-mail server" ); server.stop(); server = null; }
/** Stops the server. */ public void stop() { synchronized (greenMail) { if (started) { greenMail.stop(); started = false; } else { log.warn("Can not stop server (not started)."); } } }
public static synchronized void stopEmailServer() { log.debug("Stoping e-mail server"); server.stop(); server = null; }
@Override public void reset() { stop(); start(); }
@AfterClass public static void stopEmailServer() { if (server != null) { LOG.debug("Stoping e-mail server"); server.stop(); server = null; } }
protected void shutdownMailServer() { if ( enableMailServer() ) { s( GreenMail.class ).stop(); } }
@Override protected void tearDown() throws Exception { super.tearDown(); server.stop(); } }
@AfterEach void stopEmailing() { LOGGER.info("Stopping e-mailing."); try { EMAIL.purgeEmailFromAllMailboxes(); EMAIL.stop(); } catch (final Exception ex) { LOGGER.warn("Failed stopping e-mail server.", ex); } }
@AfterEach void stopEmailing() { LOGGER.info("Stopping e-mailing."); try { EMAIL.purgeEmailFromAllMailboxes(); EMAIL.stop(); } catch (final Exception ex) { LOGGER.warn("Failed stopping e-mail server.", ex); } }
@After public void after() { gm.stop(); m.stop(); }
@After @Override protected void tearDown() throws Exception { if (null != greenMail) { greenMail.stop(); } services.destroy(); super.tearDown(); }