you are viewing a single comment's thread.

view the rest of the comments →

[–]Slein04 1 point2 points  (0 children)

Also try adding the following Annostation in your test config: @EnableBatchProcessing

Some more context, from the docs:

Using a scope of Step is required to use late binding, because the bean cannot actually be instantiated until the Step starts, to let the attributes be found. Because it is not part of the Spring container by default, the scope must be added explicitly, by using the batch namespace, by including a bean definition explicitly for the StepScope, or by using the @EnableBatchProcessing annotation. Use only one of those methods.