Before you begin: Join our book community on Discord
Give your feedback straight to the author himself and chat to other early readers on our Discord server (find the "full-stack-dev-spring-boot-3-react-4e" channel under EARLY ACCESS SUBSCRIPTION).
This chapter explains how to test your Spring Boot backend. The backend of an application is responsible for handling business logic and data storage of the application. Proper testing of the backend ensures that the application works as intended, is secure and is easier to maintain. We will create some unit tests in relation to our backend—these will make your backend code easier to maintain. We will use the database application that we created in the previous chapter as a starting point.In this chapter, we will cover the following topics:
- Testing in Spring Boot
- Creating unit tests
- Running tests