Spring security not calling my custom authentication filter when running JUnit tests
I'm trying to implement custom stateless authentication with Spring Security by following this article The problem I'm facing is that my custom filter is not being called by the framework, even when my SecurityConfig looks almost the same as in the previous link (a bit simpler): @Configuration @EnableWebMvcSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired @Qualifier("appAuthenticationProvider") private AuthenticationProvider authenticationProvider; @Autowired @Qualifier("appAuthenticationFilter") private