When I run the test cases some of the schedular task got started. But I want that these schedular should not start at test .
I have tried by using @Profile(!test)
, also @ConditionalOnProperty()
and by putting initialDelay
with @Scheduled
. But didn't work