title: Test the SpringBoot application startup
body: <p>I have a JUnit test that starts an spring-boot application (in my case, the main class is <code>SpringTestDemoApp</code>) after the test:</p>
  
  <pre><code>@WebIntegrationTest
  @RunWith(SpringJUnit4ClassRunner.class)
  @SpringApplicationConfiguration(classes = SpringTestDemoApp.class)
  public class SpringTest {
  
      @Test
      public void test() {
          // Test http://localhost:8080/ (with Selenium)
      }
  }
  </code></pre>
  
  <p>Everything works fine using spring-boot <code>1.3.3.RELEASE</code>. Nevertheless, the annotation <code>@WebIntegrationTest</code> and <code>@SpringApplicationConfiguration</code> have been removed in spring-boot <code>1.5.2.RELEASE</code>. I tried to refactor the code to the new version, but I am not able to do it. With the following test, my app is not started before the test and <a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a> returns 404:</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @SpringBootTest(classes = SpringTestDemoApp.class)
  @WebAppConfiguration
  public class SpringTest {
  
      @Test
      public void test() {
          // The same test than before
      }
  
  }
  </code></pre>
  
  <p>How can I refactor my test to make it works in spring-boot 1.5?</p>