Closed
Description
Using @SpringBatchTest
with a test context that contains more than one datasource bean fails at startup. The reason is that @SpringBatchTest
tries to register a JobRepositoryTestUtils
bean in the test context, which in turn tries to autowire a datasource (but multiple are found in this case).
The autowiring of the datasource in JobRepositoryTestUtils
should be removed to avoid this kind of issues.