For what it's worth, I write a simple (non-server) controller test as early as chapter 1 in Spring in Action 5. And then, later in chapter 11, I show how to write a test that fires up a server. In that case, it is in the context of WebFlux, but the same thing would work even for testing Spring MVC.
Igor Janicki wrote:@Peter Rooke: Thanks.
Now I think how to perform tests with JUnit.
I would add some @tests using Apache HTTP client.
However how to start automatically the local server with @Controller ?