I have a spring boot spring batch project. The following setting is in my application.yml
# Spring Framework Standard Properties
spring:
batch:
job.enabled: true
When I have this setting set to true as above it causes my junit tests to run twice everytime I kick off a unit test.
When I change the setting to false my junit tests run once when I kick off the same unit test.
A couple of questions...
I am not 100% clear on what this setting is. Can someone tell me more.
And also is there anything I can put in my unit test to change this to false just for my unit tests.