Great. Thank so much. How can we mock interceptor?
@rieckpil2 жыл бұрын
I would always try to test the endpoints with all security settings and the filters & interceptors. If you want no interceptors, you can bootstrap your own MockMvc instance, see: rieckpil.de/guide-to-testing-spring-boot-applications-with-mockmvc/
@legendamongus6002 Жыл бұрын
how to test using mockmvc without spring boot annotations, i mean using only spring mvc annotations
@rieckpil Жыл бұрын
You can manually bootstrap a MockMvc instance as seen here rieckpil.de/guide-to-testing-spring-boot-applications-with-mockmvc/