diff --git a/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java b/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java index 1c038eb..f043188 100644 --- a/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java +++ b/src/test/java/com/wiemanboy/wiemanapi/config/TestSecurityConfig.java @@ -18,8 +18,8 @@ public JwtDecoder jwtDecoder() { } @Bean - public SecurityFilterChain configure(HttpSecurity http) throws Exception { - return mock(SecurityFilterChain.class); + public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { + return http.authorizeHttpRequests(authorize -> authorize.anyRequest().permitAll()).build(); } @Bean