6
Testing Your Backend
This chapter explains how to test your Spring Boot backend. The backend of an application is responsible for handling business logic and data storage. Proper testing of the backend ensures that the application works as intended, is secure, and is easier to maintain. We will create some unit and integration tests in relation to our backend, using the database application that we created earlier as a starting point.
In this chapter, we will cover the following topics:
- Testing in Spring Boot
- Creating test cases
- Test-driven development
Technical requirements
The Spring Boot application that we created in the previous chapters is required.
The following GitHub link will also be required: https://github.com/PacktPublishing/Full-Stack-Development-with-Spring-Boot-3-and-React-Fourth-Edition/tree/main/Chapter06 ...
Get Full Stack Development with Spring Boot 3 and React - Fourth 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.