You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Using
@SpringBatchTest
with a test context that contains more than one datasource bean fails at startup. The reason is that@SpringBatchTest
tries to register aJobRepositoryTestUtils
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.Similar to #1237
Related to #3767
The text was updated successfully, but these errors were encountered: