Top "Spring-security-test" questions

How to add a header to a MockMvc request, depending on test annotation?

As a follow up to this question, I wonder how to transparently add an "Authorization" header to a MockHttpServletRequestBuilder, only …

spring-test spring-security-test
Spring Boot: Disable security for Spring Boot Unit Test

Spring Boot version: 2.0.4.RELEASE For the Spring Boot Test below, the test returns an unwanted 401 response: "401" status, "error": "unauthorized" What …

java spring-boot spring-security spring-boot-test spring-security-test