I am using Junit (within Eclipse) to invoke Spring Batch. My problem is that within Junit I never get any result using the xml configuration shown below. However, everything works perfectly (within Junit) if I change "SimpleAsyncTaskExecutor" in the example below to instead be "SyncTaskExecutor".
So my question is whether this is normal behavior within Junit. I.e., that when using Junit it is always necessary to change from SimpleAsyncTaskExecutor to SyncTaskExecutor. The implication of the question is whether I can expect that when not using Junit, it will work okay to change back to using SimpleAsyncTaskExecutor.
<property name="jobRepository" ref="jobRepository" />
<bean class="org.springframework.core.task.SimpleAsyncTaskExecutor" />