spring-guides / gs-testing-web

Testing the Web Layer :: Learn how to test Spring Boot applications and MVC controllers.

Home Page:http://spring.io/guides/gs/testing-web/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong code sample in Test the Application

olevitt opened this issue · comments

Hello,

The code block that illustrates this sentence :

The first thing you can do is write a simple sanity check test that will fail if the application context cannot start. The following listing (from src/test/java/com/example/testingweb/TestingWebApplicationTest.java) shows how to do so:  

seems to be the wrong one. It is supposed to be a simple contextLoads() test but instead we have the full mockMVC test example that is used later one.