title: How to start server once before and stop after all tests?
body: <p>I want to start a server once before all tests and then shutdown the server after all tests have executed.</p>
  
  <p>In Spring Boot 1.3, I could create a <code>@Component</code> with <code>@PostConstruct</code> to start a server once before tests were executed and then <code>@PreDestroy</code> to stop the server after all tests executed.</p>
  
  <p>After upgrading to Spring Boot 1.5, <code>@PostConstruct</code> is called before <strong>every</strong> <code>@Test</code> method. <code>@PreDestroy</code> is called for <strong>every</strong> <code>@Test</code> but only after <strong>all</strong> tests have executed!</p>
  
  <p>What changed and/or how should I be doing it now?</p>