I'm running a very simple and lightweight test suite with Maven, using MockMvc
to test my controllers. I have basic authentication configured, and everything works perfectly.
However, as soon as I put the annotation @EnableBatchProcessing
to one of my classes, the tests all fail with a 401 Unauthorized. Just one simple annotation and everything breaks.
Why would a batch processing annotation affect testing in such a way?