Testing support for Spring Security, including mock users and security context setup.
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<version>7.1.0</version>
</dependency>No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Annotates a test method with a mock user having the ADMIN role.
Ensure spring-security-test is on the test classpath and use JUnit 5.
No dependency data recorded yet.