18 Testing security configurations
This chapter covers
- Testing integration with Spring Security configurations for endpoints
- Defining mock users for tests
- Testing integration with Spring Security for method-level security
- Testing reactive Spring implementations
The legend says that writing unit and integration tests started with the following short verse:
99 little bugs in the code,
99 little bugs.
Track one down, patch it around,
There’s 113 little bugs in the code.
—Anonymous
With time, software became more complex, and teams became larger. Knowing all the functionalities implemented over time by others became impossible. Developers needed a way to make sure they didn’t break existing functionalities while correcting bugs or implementing ...
Get Spring Security in Action, Second 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.