5

Testing with Spring Boot

In the previous chapter, we learned how to secure an application through various tactics, including path-based and method-based rules. We even learned how to delegate to an external system such as Google to offload risk for user management.

In this chapter, we’ll learn about testing in Spring Boot. Testing is a multi-faceted approach. It also isn’t something that you ever really finish. That’s because every time we add new features, we should add corresponding test cases to capture requirements and verify they are met. It’s always possible to uncover corner cases we didn’t think of. And as our application evolves, we have to update and upgrade our testing methods.

Testing is a philosophy that, when embraced, enables ...

Get Learning Spring Boot 3.0 - 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.