Commit 109e731 1 parent d21952d commit 109e731 Copy full SHA for 109e731
File tree 2 files changed +0
-29
lines changed
spring-boot-project/spring-boot-autoconfigure/src
main/java/org/springframework/boot/autoconfigure/batch
test/java/org/springframework/boot/autoconfigure/batch
2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import javax .sql .DataSource ;
22
22
23
- import org .springframework .batch .core .configuration .BatchConfigurationException ;
24
23
import org .springframework .batch .core .configuration .annotation .EnableBatchProcessing ;
25
24
import org .springframework .batch .core .configuration .support .DefaultBatchConfiguration ;
26
25
import org .springframework .batch .core .explore .JobExplorer ;
@@ -130,13 +129,6 @@ protected DataSource getDataSource() {
130
129
return this .dataSource ;
131
130
}
132
131
133
- @ Bean
134
- @ ConditionalOnMissingBean
135
- @ Override
136
- public JobRepository jobRepository () throws BatchConfigurationException {
137
- return super .jobRepository ();
138
- }
139
-
140
132
@ Override
141
133
protected PlatformTransactionManager getTransactionManager () {
142
134
return this .transactionManager ;
Original file line number Diff line number Diff line change @@ -517,13 +517,6 @@ void defaultExecutionContextSerializerIsUsed() {
517
517
});
518
518
}
519
519
520
- @ Test
521
- void defaultJobRepositoryIsNotCreatedWhenUserDefinedJobRepositoryBean () {
522
- this .contextRunner
523
- .withUserConfiguration (TestConfigurationWithJobRepository .class , EmbeddedDataSourceConfiguration .class )
524
- .run ((context ) -> assertThat (context ).hasSingleBean (TestJobRepository .class ));
525
- }
526
-
527
520
private JobLauncherApplicationRunner createInstance (String ... registeredJobNames ) {
528
521
JobLauncherApplicationRunner runner = new JobLauncherApplicationRunner (mock (JobLauncher .class ),
529
522
mock (JobExplorer .class ), mock (JobRepository .class ));
@@ -603,16 +596,6 @@ static class TestConfiguration {
603
596
604
597
}
605
598
606
- @ TestAutoConfigurationPackage (City .class )
607
- static class TestConfigurationWithJobRepository {
608
-
609
- @ Bean
610
- TestJobRepository jobRepository () {
611
- return mock (TestJobRepository .class );
612
- }
613
-
614
- }
615
-
616
599
@ Configuration (proxyBeanMethods = false )
617
600
static class EntityManagerFactoryConfiguration {
618
601
@@ -897,8 +880,4 @@ ExecutionContextSerializer executionContextSerializer() {
897
880
898
881
}
899
882
900
- interface TestJobRepository extends JobRepository {
901
-
902
- }
903
-
904
883
}
You can’t perform that action at this time.
0 commit comments