<WebFilter Mock Testing for Spring boot 3.3.5 work...
# stackoverflow
r
WebFilter Mock Testing for Spring boot 3.3.5 workaround I have changed the version from 3.3.1 to 3.3.5 for spring boot in my project. This caused the http headers to read only when using a filters. I found a workaround for this and its working perfectly fine. But the trouble is that i am unable to write test for this inspite of many tries. The workaround is @Bean @Order(Ordered.HIGHEST_PRECEDENCE) WebFilter writeableHeaders() { return (exchange, chain) -> { HttpHeaders writeableHeaders =...