title: Unable to find a SpringBootConfiguration in Spring Boot Test 1.4
body: <p>I'm not able to run a simple test in spring boot 1.4. I followed the tutorial from the official site <a href="https://spring.io/blog/2016/04/15/testing-improvements-in-spring-boot-1-4#testing-the-spring-mvc-slice" rel="noreferrer">testing-the-spring-mvc-slice</a> but I didn't get it to work.</p>
  
  <p>every time i get the following error:</p>
  
  <pre><code>java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test
  </code></pre>
  
  <p>any ideas, hints? </p>
  
  <p>Thanks in advance</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>this is the controller</p>
  
  <pre><code>@Controller
  public class UserManagementController {
  
  @GetMapping(value = "/gs/users/getUsers")
      public @ResponseBody String getAllUsers() {
          return "test";
      }
  }
  </code></pre>
  
  <p>this is the test</p>
  
  <pre><code>@RunWith(SpringRunner.class)
  @WebMvcTest(UserManagementController.class)
  public class UserManagementControllerTest {
  
      @Autowired
      private MockMvc mvc;
  
      @Test
      public void showUserView() throws Exception {
          this.mvc.perform(get("/gs/users/getUsers"))
              .andExpect(status().isOk())
              .andDo(print());
      }
  }
  </code></pre>
  
  <p>From my point of view it's exactly the same like this post from the site.</p>
  
  <p>the <code>@WebMvcTest</code> will do:</p>
  
  <ul>
  <li>Auto-configure Spring MVC, Jackson, Gson, Message converters etc.</li>
  <li>Load relevant components (<code>@Controller</code>, <code>@RestController</code>, <code>@JsonComponent</code> etc)</li>
  <li>Configure MockMVC</li>
  </ul>
  
  <p>now why i need to configure a "super" class</p>