Chapter 4. Testing with Spring Boot

This chapter covers

  • Integration testing
  • Testing apps in a server
  • Spring Boot’s test utilities

It’s been said that if you don’t know where you’re going, any road will get you there. But with software development, if you don’t know where you’re going, you’ll likely end up with a buggy application that nobody can use.

The best way to know for sure where you’re going when writing applications is to write tests that assert the desired behavior of an application. If those tests fail, you know you have some work to do. If they pass, then you’ve arrived (at least until you think of some more tests that you can write).

Whether you write tests first or after the code has already been written, it’s important ...

Get Spring Boot in Action now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.