Wrong code sample in Test the Application
olevitt opened this issue · comments
Olivier Levitt commented
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.