17 Testing Spring Boot applications

This chapter covers

  • Creating a project with Spring Initializr
  • Moving a Spring application tested with JUnit 5 to Spring Boot
  • Implementing a test-specific Spring Boot configuration
  • Testing a Spring Boot application feature with JUnit 5

Working with Spring Boot is like pair-programming with the Spring developers.


Spring Boot is a Spring convention-over-configuration solution. It enables the creation of Spring applications that are ready to run immediately. Spring Boot is an extension of the Spring Framework that strongly reduces the initial Spring application’s configuration: a Spring Boot application is preconfigured and given dependencies to outside libraries so that we can start using it. Most ...

Get JUnit in Action, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.