|
|
|
|
@ -517,13 +517,6 @@ class BatchAutoConfigurationTests {
@@ -517,13 +517,6 @@ class BatchAutoConfigurationTests {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
void defaultJobRepositoryIsNotCreatedWhenUserDefinedJobRepositoryBean() { |
|
|
|
|
this.contextRunner |
|
|
|
|
.withUserConfiguration(TestConfigurationWithJobRepository.class, EmbeddedDataSourceConfiguration.class) |
|
|
|
|
.run((context) -> assertThat(context).hasSingleBean(TestJobRepository.class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JobLauncherApplicationRunner createInstance(String... registeredJobNames) { |
|
|
|
|
JobLauncherApplicationRunner runner = new JobLauncherApplicationRunner(mock(JobLauncher.class), |
|
|
|
|
mock(JobExplorer.class), mock(JobRepository.class)); |
|
|
|
|
@ -603,16 +596,6 @@ class BatchAutoConfigurationTests {
@@ -603,16 +596,6 @@ class BatchAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@TestAutoConfigurationPackage(City.class) |
|
|
|
|
static class TestConfigurationWithJobRepository { |
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
|
TestJobRepository jobRepository() { |
|
|
|
|
return mock(TestJobRepository.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Configuration(proxyBeanMethods = false) |
|
|
|
|
static class EntityManagerFactoryConfiguration { |
|
|
|
|
|
|
|
|
|
@ -897,8 +880,4 @@ class BatchAutoConfigurationTests {
@@ -897,8 +880,4 @@ class BatchAutoConfigurationTests {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface TestJobRepository extends JobRepository { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|