Spring Boot: How to disable @Scheduled in unit tests
Spring framework exposes a nice feature to schedule some task: @Scheduled annotation. But this features makes very difficult unit test process – all scheduled tasks start work in any unit test where Spring scanning is used.
https://ysden123.wordpress.com/2018/10/05/spring-boot-how-to-disable-scheduled-in-unit-tests/#more-2459