From 7223f60ee7d56620cdb69ebe00bf870bc60bb11d Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Fri, 7 Aug 2020 10:20:52 -0400 Subject: [PATCH] Moved Flat File Autoconfigs, props and tests to the flatfile package --- .../FlatFileItemReaderAutoConfiguration.java | 2 +- .../FlatFileItemReaderProperties.java | 2 +- .../FlatFileItemWriterAutoConfiguration.java | 2 +- .../FlatFileItemWriterProperties.java | 2 +- .../spring-configuration-metadata.json | 78 +++++++++---------- .../main/resources/META-INF/spring.factories | 4 +- ...tFileItemReaderAutoConfigurationTests.java | 4 +- ...tFileItemWriterAutoConfigurationTests.java | 3 +- 8 files changed, 50 insertions(+), 47 deletions(-) rename spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemReaderAutoConfiguration.java (98%) rename spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemReaderProperties.java (99%) rename spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemWriterAutoConfiguration.java (98%) rename spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemWriterProperties.java (99%) rename spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemReaderAutoConfigurationTests.java (98%) rename spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/{ => flatfile}/FlatFileItemWriterAutoConfigurationTests.java (99%) diff --git a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfiguration.java b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfiguration.java similarity index 98% rename from spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfiguration.java rename to spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfiguration.java index c600ad19..329f5158 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfiguration.java +++ b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfiguration.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.util.Map; diff --git a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderProperties.java b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderProperties.java similarity index 99% rename from spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderProperties.java rename to spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderProperties.java index e817f369..7cab1484 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderProperties.java +++ b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderProperties.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.util.ArrayList; import java.util.List; diff --git a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfiguration.java b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfiguration.java similarity index 98% rename from spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfiguration.java rename to spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfiguration.java index f21dabde..ce7c20a8 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfiguration.java +++ b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfiguration.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.util.ArrayList; import java.util.List; diff --git a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterProperties.java b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterProperties.java similarity index 99% rename from spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterProperties.java rename to spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterProperties.java index 7efa719b..cdce55da 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterProperties.java +++ b/spring-cloud-starter-single-step-batch-job/src/main/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterProperties.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.util.Locale; diff --git a/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring-configuration-metadata.json b/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring-configuration-metadata.json index c7c099c9..e9114fba 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring-configuration-metadata.json +++ b/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring-configuration-metadata.json @@ -7,13 +7,13 @@ }, { "name": "spring.batch.job.flatfilereader", - "type": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "type": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilewriter", - "type": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "type": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" } ], "properties": [ @@ -25,194 +25,194 @@ { "name": "spring.batch.job.flatfilereader.comments", "type": "java.util.List", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.current-item-count", "type": "java.lang.Integer", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": 0 }, { "name": "spring.batch.job.flatfilereader.delimited", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilereader.delimiter", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.encoding", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.fixed-length", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilereader.included-fields", "type": "java.util.List", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.lines-to-skip", "type": "java.lang.Integer", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": 0 }, { "name": "spring.batch.job.flatfilereader.max-item-count", "type": "java.lang.Integer", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.name", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.names", "type": "java.lang.String[]", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.parsing-strict", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": true }, { "name": "spring.batch.job.flatfilereader.quote-character", "type": "java.lang.Character", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.ranges", "type": "java.util.List", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.resource", "type": "org.springframework.core.io.Resource", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties" }, { "name": "spring.batch.job.flatfilereader.save-state", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": true }, { "name": "spring.batch.job.flatfilereader.strict", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderProperties", "defaultValue": true }, { "name": "spring.batch.job.flatfilewriter.append", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilewriter.delimited", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilewriter.delimiter", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": "," }, { "name": "spring.batch.job.flatfilewriter.encoding", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.force-sync", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilewriter.format", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.formatted", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilewriter.line-separator", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.locale", "type": "java.util.Locale", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.maximum-length", "type": "java.lang.Integer", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": 0 }, { "name": "spring.batch.job.flatfilewriter.minimum-length", "type": "java.lang.Integer", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": 0 }, { "name": "spring.batch.job.flatfilewriter.name", "type": "java.lang.String", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.names", "type": "java.lang.String[]", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.resource", "type": "org.springframework.core.io.Resource", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.flatfilewriter.save-state", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": true }, { "name": "spring.batch.job.flatfilewriter.should-delete-if-empty", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": false }, { "name": "spring.batch.job.flatfilewriter.should-delete-if-exists", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties", + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties", "defaultValue": true }, { "name": "spring.batch.job.flatfilewriter.transactional", "type": "java.lang.Boolean", - "sourceType": "org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterProperties" + "sourceType": "org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterProperties" }, { "name": "spring.batch.job.job-name", diff --git a/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring.factories b/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring.factories index a4e667cc..11068756 100644 --- a/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring.factories +++ b/spring-cloud-starter-single-step-batch-job/src/main/resources/META-INF/spring.factories @@ -1,6 +1,6 @@ -org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.springframework.cloud.task.batch.autoconfigure.FlatFileItemReaderAutoConfiguration,\ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemReaderAutoConfiguration,\ org.springframework.cloud.task.batch.autoconfigure.RangeConverter,\ org.springframework.cloud.task.batch.autoconfigure.SingleStepJobAutoConfiguration,\ - org.springframework.cloud.task.batch.autoconfigure.FlatFileItemWriterAutoConfiguration, \ + org.springframework.cloud.task.batch.autoconfigure.flatfile.FlatFileItemWriterAutoConfiguration, \ org.springframework.cloud.task.batch.autoconfigure.jdbc.JdbcItemWriterAutoConfiguration, \ org.springframework.cloud.task.batch.autoconfigure.jdbc.JdbcCursorItemReaderAutoConfiguration diff --git a/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfigurationTests.java b/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfigurationTests.java similarity index 98% rename from spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfigurationTests.java rename to spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfigurationTests.java index 00bfe4f3..ae568c27 100644 --- a/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemReaderAutoConfigurationTests.java +++ b/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemReaderAutoConfigurationTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.util.ArrayList; import java.util.HashMap; @@ -44,6 +44,8 @@ import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.boot.test.context.runner.ApplicationContextRunner; +import org.springframework.cloud.task.batch.autoconfigure.RangeConverter; +import org.springframework.cloud.task.batch.autoconfigure.SingleStepJobAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfigurationTests.java b/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfigurationTests.java similarity index 99% rename from spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfigurationTests.java rename to spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfigurationTests.java index 780152d0..e817d638 100644 --- a/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/FlatFileItemWriterAutoConfigurationTests.java +++ b/spring-cloud-starter-single-step-batch-job/src/test/java/org/springframework/cloud/task/batch/autoconfigure/flatfile/FlatFileItemWriterAutoConfigurationTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.cloud.task.batch.autoconfigure; +package org.springframework.cloud.task.batch.autoconfigure.flatfile; import java.io.File; import java.io.InputStreamReader; @@ -45,6 +45,7 @@ import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.boot.test.context.runner.ApplicationContextRunner; +import org.springframework.cloud.task.batch.autoconfigure.SingleStepJobAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource;