From bb98c94722a6a4f2313f85e7826e021663bf72c9 Mon Sep 17 00:00:00 2001 From: Philippe Marschall Date: Sat, 3 Oct 2026 20:10:42 +0200 Subject: [PATCH] Remove unused imports Signed-off-by: Philippe Marschall --- .../batch/core/job/builder/FlowJobBuilder.java | 1 - .../springframework/batch/core/job/flow/FlowJob.java | 1 - .../partition/support/MultiResourcePartitioner.java | 3 +-- .../core/partition/support/SimplePartitioner.java | 3 +-- .../support/TaskExecutorPartitionHandler.java | 1 - .../core/step/tasklet/SystemProcessExitCodeMapper.java | 3 +-- .../springframework/batch/core/JobExecutionTests.java | 5 +---- .../springframework/batch/core/JobInstanceTests.java | 1 - .../support/JobRegistryIntegrationTests.java | 10 +--------- .../configuration/support/MapJobRegistryTests.java | 3 +-- .../batch/core/job/SimpleStepHandlerTests.java | 1 - .../dao/AbstractExecutionContextSerializerTests.java | 3 +-- .../core/repository/dao/jdbc/JdbcJobDaoTests.java | 3 +-- .../support/AbstractMongoDBDaoIntegrationTests.java | 4 +--- .../support/MongoDBJobExplorerIntegrationTests.java | 3 +-- .../support/MongoDBJobRepositoryIntegrationTests.java | 1 - .../support/MongoDBJobRestartIntegrationTests.java | 1 - .../MongoExecutionContextDaoIntegrationTests.java | 3 +-- .../batch/core/scope/context/ChunkContextTests.java | 3 +-- .../core/step/item/TaskletStepExceptionTests.java | 1 - .../core/step/tasklet/CallableTaskletAdapterTests.java | 3 +-- .../item/data/MongoPagingItemReader.java | 1 - .../item/database/JdbcCursorItemReader.java | 1 - .../support/SqlPagingQueryProviderFactoryBean.java | 1 - .../item/file/builder/FlatFileItemReaderBuilder.java | 2 -- .../item/file/builder/FlatFileItemWriterBuilder.java | 1 - .../file/separator/SuffixRecordSeparatorPolicy.java | 4 +--- .../item/file/transform/BeanWrapperFieldExtractor.java | 3 +-- .../item/file/transform/DefaultFieldSet.java | 3 +-- .../item/file/transform/FormatterLineAggregator.java | 3 +-- .../item/file/transform/RecordFieldExtractor.java | 4 +--- .../infrastructure/item/kafka/KafkaItemWriter.java | 1 - .../item/support/CompositeItemWriter.java | 3 +-- .../item/support/SynchronizedItemStreamReader.java | 3 +-- .../support/DefaultPropertyEditorRegistrar.java | 3 +-- .../infrastructure/support/MethodInvokerUtils.java | 1 - .../infrastructure/item/ExecutionContextTests.java | 3 +-- .../infrastructure/item/ItemStreamExceptionTests.java | 3 +-- .../item/UnexpectedInputExceptionTests.java | 3 +-- .../item/adapter/AbstractDelegatorTests.java | 3 +-- .../item/adapter/HippyMethodInvokerTests.java | 5 +---- .../infrastructure/item/amqp/AmqpItemReaderTests.java | 3 +-- .../infrastructure/item/amqp/AmqpItemWriterTests.java | 3 +-- .../item/amqp/builder/AmqpItemReaderBuilderTests.java | 3 +-- .../item/amqp/builder/AmqpItemWriterBuilderTests.java | 3 +-- .../item/data/MongoCursorItemReaderTest.java | 1 - .../infrastructure/item/data/MongoItemWriterTests.java | 3 +-- .../item/data/MongoPagingItemReaderTests.java | 4 +--- .../item/data/RepositoryItemReaderTests.java | 3 +-- .../item/data/RepositoryItemWriterTests.java | 3 +-- .../item/data/builder/MongoItemWriterBuilderTests.java | 3 +-- .../builder/MongoPagingItemReaderBuilderTests.java | 3 +-- .../data/builder/RepositoryItemReaderBuilderTests.java | 3 +-- .../data/builder/RepositoryItemWriterBuilderTests.java | 3 +-- .../ExtendedConnectionDataSourceProxyTests.java | 3 +-- .../item/database/JdbcBatchItemWriterClassicTests.java | 3 +-- .../JdbcBatchItemWriterNamedParameterTests.java | 4 +--- .../item/database/JdbcPagingItemReaderConfigTests.java | 3 +-- .../JdbcPagingItemReaderEmptyResultSetTests.java | 4 +--- .../item/database/JdbcParameterUtilsTests.java | 4 +--- .../item/database/JpaItemWriterTests.java | 4 +--- .../builder/JdbcCursorItemReaderBuilderTests.java | 3 +-- .../builder/JdbcPagingItemReaderBuilderTests.java | 3 +-- .../database/builder/JpaItemWriterBuilderTests.java | 3 +-- .../AbstractPagingQueryProviderIntegrationTests.java | 3 +-- .../support/AbstractSqlPagingQueryProviderTests.java | 3 +-- .../ColumnMapExecutionContextRowMapperTests.java | 4 +--- ...efaultDataFieldMaxValueIncrementerFactoryTests.java | 4 +--- .../support/H2PagingQueryProviderIntegrationTests.java | 3 +-- .../database/support/SqlPagingQueryUtilsTests.java | 4 +--- .../support/SqliteMaxValueIncrementerTests.java | 3 +-- .../item/file/DefaultBufferedReaderFactoryTests.java | 3 +-- .../item/file/FlatFileItemReaderTests.java | 5 +---- .../item/file/FlatFileItemWriterTests.java | 3 +-- .../item/file/FlatFileParseExceptionTests.java | 3 +-- .../file/MultiResourceItemReaderIntegrationTests.java | 5 +---- .../MultiResourceItemReaderResourceAwareTests.java | 5 +---- .../item/file/ResourcesItemReaderTests.java | 3 +-- .../file/SimpleBinaryBufferedReaderFactoryTests.java | 3 +-- .../item/file/SimpleResourceSuffixCreatorTests.java | 4 +--- .../file/builder/FlatFileItemReaderBuilderTests.java | 2 -- .../BeanWrapperFieldSetMapperConcurrentTests.java | 3 +-- .../BeanWrapperFieldSetMapperFuzzyMatchingTests.java | 3 +-- .../file/mapping/BeanWrapperFieldSetMapperTests.java | 3 +-- .../item/file/mapping/DefaultLineMapperTests.java | 4 +--- .../file/mapping/PassThroughFieldSetMapperTests.java | 3 +-- .../item/file/mapping/PassThroughLineMapperTests.java | 4 +--- .../item/file/mapping/PropertyMatchesTests.java | 4 +--- .../separator/DefaultRecordSeparatorPolicyTests.java | 4 +--- .../file/separator/JsonRecordSeparatorPolicyTests.java | 4 +--- .../separator/SimpleRecordSeparatorPolicyTests.java | 4 +--- .../separator/SuffixRecordSeparatorPolicyTests.java | 4 +--- .../item/file/transform/CommonLineTokenizerTests.java | 4 +--- .../file/transform/DefaultFieldSetFactoryTests.java | 5 +---- .../item/file/transform/DefaultFieldSetTests.java | 5 +---- .../file/transform/DelimitedLineAggregatorTests.java | 4 +--- .../file/transform/DelimitedLineTokenizerTests.java | 5 ----- .../item/file/transform/FixedLengthTokenizerTests.java | 2 -- .../file/transform/FormatterLineAggregatorTests.java | 6 +----- .../file/transform/PassThroughFieldExtractorTests.java | 6 +----- .../file/transform/PassThroughLineAggregatorTests.java | 5 +---- .../PatternMatchingCompositeLineTokenizerTests.java | 4 +--- .../file/transform/RangeArrayPropertyEditorTests.java | 5 +---- .../item/file/transform/RecordFieldExtractorTests.java | 4 +--- .../item/file/transform/RegexLineTokenizerTests.java | 4 +--- .../item/function/ConsumerItemWriterTests.java | 3 +-- .../item/function/FunctionItemProcessorTests.java | 3 +-- .../function/PredicateFilteringItemProcessorTests.java | 4 +--- .../item/function/SupplierItemReaderTests.java | 4 +--- .../infrastructure/item/jms/JmsItemReaderTests.java | 3 +-- .../infrastructure/item/jms/JmsItemWriterTests.java | 3 +-- .../item/jms/JmsMethodArgumentsKeyGeneratorTests.java | 4 +--- .../item/jms/JmsMethodInvocationRecovererTests.java | 3 +-- .../item/jms/JmsNewMethodArgumentsIdentifierTests.java | 4 +--- .../item/jms/builder/JmsItemReaderBuilderTests.java | 3 +-- .../item/jms/builder/JmsItemWriterBuilderTests.java | 3 +-- .../item/json/GsonJsonObjectMarshallerTests.java | 4 +--- .../item/json/JacksonJsonObjectMarshallerTests.java | 4 +--- .../infrastructure/item/json/JsonItemReaderTests.java | 4 +--- .../json/builder/JsonFileItemWriterBuilderTests.java | 3 +-- .../item/json/builder/JsonItemReaderBuilderTests.java | 3 +-- .../item/kafka/KafkaItemReaderIntegrationTests.java | 3 +-- .../item/kafka/KafkaItemReaderTests.java | 4 +--- .../item/kafka/KafkaItemWriterTests.java | 6 +----- .../kafka/builder/KafkaItemReaderBuilderTests.java | 3 +-- .../kafka/builder/KafkaItemWriterBuilderTests.java | 3 +-- .../ldif/support/MappingLdifReaderTestSupport.java | 1 - .../item/mail/DefaultMailErrorHandlerTests.java | 3 +-- .../item/mail/SimpleMailMessageItemWriterTests.java | 3 +-- .../SimpleMailMessageItemWriterBuilderTests.java | 3 +-- .../item/mail/javamail/MimeMessageItemWriterTests.java | 3 +-- .../item/queue/BlockingQueueItemReaderTests.java | 3 +-- .../item/queue/BlockingQueueItemWriterTests.java | 3 +-- .../builder/BlockingQueueItemReaderBuilderTests.java | 3 +-- .../builder/BlockingQueueItemWriterBuilderTests.java | 3 +-- .../item/redis/RedisItemReaderTests.java | 3 +-- .../item/redis/RedisItemWriterTests.java | 3 +-- .../redis/builder/RedisItemReaderBuilderTests.java | 3 +-- .../redis/builder/RedisItemWriterBuilderTests.java | 3 +-- .../AbstractSynchronizedItemStreamWriterTests.java | 3 +-- .../support/ClassifierCompositeItemProcessorTests.java | 3 +-- .../support/ClassifierCompositeItemWriterTests.java | 3 +-- .../item/support/CompositeItemProcessorTests.java | 5 +---- .../item/support/CompositeItemStreamTests.java | 3 +-- .../item/support/CompositeItemWriterTests.java | 4 +--- .../item/support/IteratorItemReaderTests.java | 4 +--- .../item/support/ListItemReaderTests.java | 4 +--- .../item/support/ScriptItemProcessorTests.java | 3 +-- .../support/SingleItemPeekableItemReaderTests.java | 4 +--- .../item/support/SynchronizedItemReaderTests.java | 3 +-- .../item/support/SynchronizedItemWriterTests.java | 3 +-- .../support/TransactionAwareListItemReaderTests.java | 3 +-- .../ClassifierCompositeItemProcessorBuilderTests.java | 3 +-- .../ClassifierCompositeItemWriterBuilderTests.java | 3 +-- .../builder/CompositeItemProcessorBuilderTests.java | 3 +-- .../builder/CompositeItemWriterBuilderTests.java | 3 +-- .../builder/ScriptItemProcessorBuilderTests.java | 3 +-- .../builder/SynchronizedItemReaderBuilderTests.java | 3 +-- .../builder/SynchronizedItemWriterBuilderTests.java | 3 +-- .../item/util/ExecutionContextUserSupportTests.java | 4 +--- .../batch/infrastructure/item/util/FileUtilsTests.java | 3 +-- .../validator/BeanValidatingItemProcessorTests.java | 5 +---- .../item/validator/SpringValidatorTests.java | 4 +--- .../item/validator/ValidatingItemProcessorTests.java | 6 +----- .../item/validator/ValidationExceptionTests.java | 3 +-- .../xml/builder/StaxEventItemReaderBuilderTests.java | 4 +--- .../xml/builder/StaxEventItemWriterBuilderTests.java | 1 - .../item/xml/stax/AbstractEventWriterWrapperTests.java | 4 +--- .../item/xml/stax/NoStartEndDocumentWriterTests.java | 4 +--- .../UnclosedElementCollectingEventWriterTests.java | 4 +--- .../stax/UnopenedElementClosingEventWriterTests.java | 4 +--- .../batch/infrastructure/poller/DirectPollerTests.java | 5 +---- .../infrastructure/repeat/RepeatExceptionTests.java | 3 +-- .../repeat/callback/NestedRepeatCallbackTests.java | 3 +-- .../repeat/context/RepeatContextCounterTests.java | 4 +--- .../repeat/context/RepeatContextSupportTests.java | 4 +--- .../context/SynchronizedAttributeAccessorTests.java | 3 +-- .../exception/CompositeExceptionHandlerTests.java | 5 +---- .../repeat/exception/DefaultExceptionHandlerTests.java | 3 +-- .../exception/LogOrRethrowExceptionHandlerTests.java | 3 +-- .../RethrowOnThresholdExceptionHandlerTests.java | 3 +-- .../exception/SimpleLimitExceptionHandlerTests.java | 3 +-- .../interceptor/RepeatOperationsInterceptorTests.java | 3 +-- .../repeat/listener/CompositeRepeatListenerTests.java | 3 +-- .../repeat/policy/CountingCompletionPolicyTests.java | 3 +-- .../repeat/policy/MockCompletionPolicySupport.java | 3 +-- .../repeat/policy/SimpleCompletionPolicyTests.java | 3 +-- .../repeat/policy/TimeoutCompletionPolicyTests.java | 3 +-- .../support/RepeatSynchronizationManagerTests.java | 3 +-- .../support/AnnotationMethodResolverTests.java | 4 +--- .../support/DatabaseTypeIntegrationTests.java | 3 +-- .../infrastructure/support/DatabaseTypeTestUtils.java | 4 +--- .../support/DefaultPropertyEditorRegistrarTests.java | 4 +--- .../support/LastModifiedResourceComparatorTests.java | 3 +-- .../infrastructure/support/PatternMatcherTests.java | 4 +--- .../support/PropertiesConverterTests.java | 3 +-- .../infrastructure/support/ReflectionUtilsTests.java | 3 +-- .../support/SimpleMethodInvokerTests.java | 4 +--- .../ResourcelessTransactionManagerTests.java | 3 +-- .../TransactionAwareBufferedWriterTests.java | 5 +---- .../integration/async/AsyncItemProcessorTests.java | 3 +-- .../chunk/MessageSourcePollerInterceptorTests.java | 3 +-- ...emoteChunkFaultTolerantStepJmsIntegrationTests.java | 3 +-- .../chunk/RemoteChunkStepIntegrationTests.java | 3 +-- .../batch/samples/common/ErrorLogTasklet.java | 4 +--- .../batch/samples/common/StagingItemReader.java | 3 +-- .../batch/samples/common/StagingItemWriter.java | 5 +---- ...onForRunningPartitionedStepsWithVirtualThreads.java | 3 +-- .../batch/samples/remotestep/ManagerConfiguration.java | 1 - .../jdbc/PartitionJdbcJobFunctionalTests.java | 3 +-- 210 files changed, 188 insertions(+), 505 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/FlowJobBuilder.java b/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/FlowJobBuilder.java index a362af26af..44abf9596e 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/FlowJobBuilder.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/job/builder/FlowJobBuilder.java @@ -22,7 +22,6 @@ import org.springframework.batch.core.job.flow.Flow; import org.springframework.batch.core.job.flow.FlowJob; import org.springframework.batch.core.job.flow.JobExecutionDecider; -import org.springframework.batch.core.step.builder.StepBuilderException; /** * A job builder for {@link FlowJob} instances. A flow job delegates processing to a diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/FlowJob.java b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/FlowJob.java index 6d2ff250d8..aafa58bf8d 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/FlowJob.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/FlowJob.java @@ -33,7 +33,6 @@ import org.springframework.batch.core.job.AbstractJob; import org.springframework.batch.core.job.SimpleStepHandler; import org.springframework.batch.core.step.StepHolder; -import org.springframework.batch.core.step.StepLocator; /** * Implementation of the {@link Job} interface that allows for complex flows of steps, diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/MultiResourcePartitioner.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/MultiResourcePartitioner.java index 7fa3ce296c..8d9ea03cff 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/MultiResourcePartitioner.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/MultiResourcePartitioner.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2013 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.core.partition.support; import java.io.IOException; -import java.util.HashMap; import java.util.Map; import org.springframework.batch.core.partition.Partitioner; diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/SimplePartitioner.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/SimplePartitioner.java index 43ab0d26cb..cad50b5e71 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/SimplePartitioner.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/SimplePartitioner.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.batch.core.partition.support; -import java.util.HashMap; import java.util.Map; import org.springframework.batch.core.partition.Partitioner; diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java index d6fe5167a8..0d314504f7 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/partition/support/TaskExecutorPartitionHandler.java @@ -16,7 +16,6 @@ package org.springframework.batch.core.partition.support; -import java.util.HashSet; import java.util.Set; import java.util.concurrent.Future; import java.util.concurrent.FutureTask; diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SystemProcessExitCodeMapper.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SystemProcessExitCodeMapper.java index e7c5ebf82d..ca263d6381 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SystemProcessExitCodeMapper.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/SystemProcessExitCodeMapper.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.core.step.tasklet; import org.springframework.batch.core.ExitStatus; -import org.springframework.batch.core.step.tasklet.SystemCommandTasklet; /** * Maps the exit code of a system process to ExitStatus value returned by a system diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/JobExecutionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/JobExecutionTests.java index 12254d7ee7..ca9a288eb2 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/JobExecutionTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/JobExecutionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import java.time.LocalDateTime; import java.util.Arrays; -import java.util.List; import org.junit.jupiter.api.Test; @@ -25,11 +24,9 @@ import org.springframework.batch.core.job.JobInstance; import org.springframework.batch.core.job.parameters.JobParameters; import org.springframework.batch.core.step.StepExecution; -import org.springframework.util.SerializationUtils; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/JobInstanceTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/JobInstanceTests.java index 6c714d3c15..7cbddf4aab 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/JobInstanceTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/JobInstanceTests.java @@ -16,7 +16,6 @@ package org.springframework.batch.core; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/JobRegistryIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/JobRegistryIntegrationTests.java index 0888f3c974..3db4742f26 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/JobRegistryIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/JobRegistryIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,23 +18,15 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.function.Executable; import org.springframework.batch.core.configuration.DuplicateJobException; import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing; import org.springframework.batch.core.job.*; import org.springframework.batch.core.configuration.JobRegistry; -import org.springframework.batch.core.job.builder.JobBuilder; -import org.springframework.batch.core.repository.JobRepository; -import org.springframework.batch.core.step.StepSupport; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; /** * @author Dave Syer diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/MapJobRegistryTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/MapJobRegistryTests.java index 6b395fe243..811756022c 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/MapJobRegistryTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/configuration/support/MapJobRegistryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ import org.springframework.batch.core.job.Job; import org.springframework.batch.core.configuration.DuplicateJobException; import org.springframework.batch.core.job.JobSupport; -import org.springframework.batch.core.launch.NoSuchJobException; import java.util.Collection; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/job/SimpleStepHandlerTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/job/SimpleStepHandlerTests.java index 49a416ebf5..ba2982077f 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/job/SimpleStepHandlerTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/job/SimpleStepHandlerTests.java @@ -25,7 +25,6 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNotSame; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java index 4609be47bd..50e5217013 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/AbstractExecutionContextSerializerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.junit.jupiter.api.Test; -import org.springframework.batch.core.job.parameters.JobParameter; import org.springframework.batch.core.job.parameters.JobParameters; import org.springframework.batch.core.repository.ExecutionContextSerializer; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/jdbc/JdbcJobDaoTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/jdbc/JdbcJobDaoTests.java index b6ed3cb9ad..1bb51292d8 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/jdbc/JdbcJobDaoTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/dao/jdbc/JdbcJobDaoTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2025 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import java.util.Map; import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.springframework.batch.core.ExitStatus; import org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/AbstractMongoDBDaoIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/AbstractMongoDBDaoIntegrationTests.java index ee1d23a649..7dcf668d19 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/AbstractMongoDBDaoIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/AbstractMongoDBDaoIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2025 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; @@ -32,7 +31,6 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.stream.Stream; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.temporal.ChronoUnit; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobExplorerIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobExplorerIntegrationTests.java index 41126294ee..425b9d5763 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobExplorerIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobExplorerIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024-2025 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,6 @@ import org.springframework.batch.core.launch.JobOperator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java index e1474b5c90..aa7cfba279 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRepositoryIntegrationTests.java @@ -43,7 +43,6 @@ import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.data.mongodb.MongoTransactionManager; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.test.annotation.DirtiesContext; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRestartIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRestartIntegrationTests.java index 2aaefebb5b..a1826d77c8 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRestartIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoDBJobRestartIntegrationTests.java @@ -41,7 +41,6 @@ import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.io.FileSystemResource; -import org.springframework.core.io.Resource; import org.springframework.data.mongodb.MongoTransactionManager; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.query.Criteria; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoExecutionContextDaoIntegrationTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoExecutionContextDaoIntegrationTests.java index efd1c0569b..bef5fc1bb0 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoExecutionContextDaoIntegrationTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/repository/support/MongoExecutionContextDaoIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024-2025 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.batch.core.job.JobInstance; import org.springframework.batch.core.job.parameters.JobParameters; import org.springframework.batch.core.job.parameters.JobParametersBuilder; -import org.springframework.batch.core.repository.dao.JobExecutionDao; import org.springframework.batch.core.step.StepExecution; import org.springframework.batch.core.launch.JobOperator; import org.springframework.batch.core.repository.dao.ExecutionContextDao; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/scope/context/ChunkContextTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/scope/context/ChunkContextTests.java index 80f599610a..7500da9e27 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/scope/context/ChunkContextTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/scope/context/ChunkContextTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertTrue; -import java.util.Collections; import java.util.Set; import org.junit.jupiter.api.BeforeEach; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/TaskletStepExceptionTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/TaskletStepExceptionTests.java index e0fb15ee3a..918c64f153 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/TaskletStepExceptionTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/TaskletStepExceptionTests.java @@ -23,7 +23,6 @@ import org.springframework.batch.core.job.JobInterruptedException; import org.springframework.batch.core.job.parameters.JobParameters; import org.springframework.batch.core.repository.support.ResourcelessJobRepository; -import org.springframework.batch.core.step.Step; import org.springframework.batch.core.step.StepContribution; import org.springframework.batch.core.step.StepExecution; import org.springframework.batch.core.listener.StepExecutionListener; diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapterTests.java index d784e04d05..ebbd6de754 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapterTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/tasklet/CallableTaskletAdapterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.batch.core.step.tasklet; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatStatus; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReader.java index cde5e4acb8..5915b99b84 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReader.java @@ -35,7 +35,6 @@ import org.springframework.data.mongodb.util.json.ParameterBindingDocumentCodec; import org.springframework.data.mongodb.util.json.ParameterBindingJsonReader; import org.springframework.util.Assert; -import org.springframework.util.ClassUtils; import org.springframework.util.StringUtils; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/JdbcCursorItemReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/JdbcCursorItemReader.java index e3056356ec..aeedb3dc9f 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/JdbcCursorItemReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/JdbcCursorItemReader.java @@ -30,7 +30,6 @@ import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.support.JdbcUtils; import org.springframework.util.Assert; -import org.springframework.util.ClassUtils; /** *

diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryProviderFactoryBean.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryProviderFactoryBean.java index de12d8ef14..1e34868580 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryProviderFactoryBean.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryProviderFactoryBean.java @@ -32,7 +32,6 @@ import static org.springframework.batch.infrastructure.support.DatabaseType.SYBASE; import java.util.HashMap; -import java.util.LinkedHashMap; import java.util.Map; import javax.sql.DataSource; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilder.java index 7fe4f5751c..f20605fb94 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilder.java @@ -20,7 +20,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; -import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; @@ -50,7 +49,6 @@ import org.springframework.batch.infrastructure.item.file.separator.SimpleRecordSeparatorPolicy; import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSetFactory; import org.springframework.beans.factory.BeanFactory; -import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.Resource; import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemWriterBuilder.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemWriterBuilder.java index 6de230ccd4..573c0d64b3 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemWriterBuilder.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemWriterBuilder.java @@ -37,7 +37,6 @@ import org.springframework.batch.infrastructure.item.file.transform.FormatterLineAggregator; import org.springframework.batch.infrastructure.item.file.transform.LineAggregator; import org.springframework.batch.infrastructure.item.file.transform.RecordFieldExtractor; -import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.WritableResource; import org.springframework.util.Assert; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicy.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicy.java index 4d14671c2d..4635d53dcd 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicy.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicy.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,8 +16,6 @@ package org.springframework.batch.infrastructure.item.file.separator; -import org.jspecify.annotations.Nullable; - /** * A {@link RecordSeparatorPolicy} that looks for an exact match for a String at the end * of a line (e.g. a semicolon). diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/BeanWrapperFieldExtractor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/BeanWrapperFieldExtractor.java index bfbacf7bd6..74769cd244 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/BeanWrapperFieldExtractor.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/BeanWrapperFieldExtractor.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.jspecify.annotations.Nullable; import org.springframework.beans.BeanWrapper; import org.springframework.beans.BeanWrapperImpl; -import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSet.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSet.java index 89c30c75b3..61b01cb084 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSet.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSet.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import java.text.SimpleDateFormat; import java.util.Arrays; import java.util.Date; -import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Objects; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregator.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregator.java index 73dae0d574..ce33f40605 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregator.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregator.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ import java.util.Formatter; import java.util.Locale; -import org.jspecify.annotations.Nullable; import org.springframework.util.Assert; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractor.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractor.java index 4010805c83..2816fb1eb4 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractor.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractor.java @@ -1,5 +1,5 @@ /* - * Copyright 2022-2023 the original author or authors. + * Copyright 2022-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import org.springframework.util.Assert; -import org.jspecify.annotations.Nullable; - /** * This is a field extractor for a Java record. By default, it will extract all record * components, unless a subset is selected using {@link #setNames(String...)}. diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriter.java index 0878fb9cdb..aa492c8346 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriter.java @@ -16,7 +16,6 @@ package org.springframework.batch.infrastructure.item.kafka; -import org.jspecify.annotations.Nullable; import org.springframework.batch.infrastructure.item.ItemWriter; import org.springframework.batch.infrastructure.item.KeyValueItemWriter; import org.springframework.core.convert.converter.Converter; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriter.java index a6ee5f1e92..2ae37aa59a 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriter.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.batch.infrastructure.item.support; -import org.jspecify.annotations.Nullable; import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStream; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemStreamReader.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemStreamReader.java index 16f758af54..a86538a405 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemStreamReader.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemStreamReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2025 the original author or authors. + * Copyright 2015-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.jspecify.annotations.Nullable; import org.springframework.batch.infrastructure.item.ItemStreamReader; -import org.springframework.beans.factory.InitializingBean; import org.springframework.util.Assert; /** diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrar.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrar.java index 99c7cfa35b..22533ca15e 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrar.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrar.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import java.util.Map; import java.util.Map.Entry; -import org.jspecify.annotations.Nullable; import org.springframework.beans.PropertyEditorRegistrar; import org.springframework.beans.PropertyEditorRegistry; import org.springframework.beans.factory.config.CustomEditorConfigurer; diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/MethodInvokerUtils.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/MethodInvokerUtils.java index 1c3e459214..5edb1520f4 100644 --- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/MethodInvokerUtils.java +++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/infrastructure/support/MethodInvokerUtils.java @@ -21,7 +21,6 @@ import java.lang.reflect.Method; import java.util.concurrent.atomic.AtomicReference; -import org.jspecify.annotations.NonNull; import org.springframework.aop.framework.Advised; import org.jspecify.annotations.Nullable; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ExecutionContextTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ExecutionContextTests.java index 40dc8f9a2c..2813216076 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ExecutionContextTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ExecutionContextTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.util.SerializationUtils; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ItemStreamExceptionTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ItemStreamExceptionTests.java index 43cfda3008..609a015970 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ItemStreamExceptionTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ItemStreamExceptionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.infrastructure.item; import org.springframework.batch.infrastructure.common.AbstractExceptionTests; -import org.springframework.batch.infrastructure.item.ItemStreamException; class ItemStreamExceptionTests extends AbstractExceptionTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/UnexpectedInputExceptionTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/UnexpectedInputExceptionTests.java index 0300cd2ca2..8c6c59e26c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/UnexpectedInputExceptionTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/UnexpectedInputExceptionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.infrastructure.item; import org.springframework.batch.infrastructure.common.AbstractExceptionTests; -import org.springframework.batch.infrastructure.item.UnexpectedInputException; class UnexpectedInputExceptionTests extends AbstractExceptionTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/AbstractDelegatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/AbstractDelegatorTests.java index 8219014b56..23b8b6b25f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/AbstractDelegatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/AbstractDelegatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2023 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.adapter.AbstractMethodInvokingDelegator; import org.springframework.batch.infrastructure.item.adapter.AbstractMethodInvokingDelegator.InvocationTargetThrowableWrapper; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/HippyMethodInvokerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/HippyMethodInvokerTests.java index f02576c323..11ccc0b77d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/HippyMethodInvokerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/adapter/HippyMethodInvokerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 the original author or authors. + * Copyright 2010-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,9 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.adapter.AbstractMethodInvokingDelegator; -import org.springframework.batch.infrastructure.item.adapter.HippyMethodInvoker; - class HippyMethodInvokerTests { @Test diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemReaderTests.java index 9f42c90929..5132f0a086 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.amqp.core.Message; -import org.springframework.batch.infrastructure.item.amqp.AmqpItemReader; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemWriterTests.java index 318e19dc62..61485bff92 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/AmqpItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.springframework.amqp.core.AmqpTemplate; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.amqp.AmqpItemWriter; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemReaderBuilderTests.java index 788ac9aa1a..f95db8d4f9 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2025 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.amqp.core.AmqpTemplate; import org.springframework.amqp.core.Message; import org.springframework.batch.infrastructure.item.amqp.AmqpItemReader; -import org.springframework.batch.infrastructure.item.amqp.builder.AmqpItemReaderBuilder; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemWriterBuilderTests.java index 867dbf9f3f..aea3000810 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/amqp/builder/AmqpItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.springframework.amqp.core.Message; import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.amqp.AmqpItemWriter; -import org.springframework.batch.infrastructure.item.amqp.builder.AmqpItemWriterBuilder; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoCursorItemReaderTest.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoCursorItemReaderTest.java index 64b6691904..3bcc6849fa 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoCursorItemReaderTest.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoCursorItemReaderTest.java @@ -27,7 +27,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import org.springframework.batch.infrastructure.item.data.MongoCursorItemReader; import org.springframework.data.domain.Sort; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.query.Query; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoItemWriterTests.java index 6fd1d7f09c..9a76aadc13 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2025 the original author or authors. + * Copyright 2013-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.mockito.quality.Strictness; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.data.MongoItemWriter; import org.springframework.batch.infrastructure.item.data.MongoItemWriter.Mode; import org.springframework.batch.infrastructure.support.transaction.ResourcelessTransactionManager; import org.springframework.data.mapping.context.MappingContext; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReaderTests.java index 67ae5c1d25..13ff686bef 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/MongoPagingItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2024 the original author or authors. + * Copyright 2013-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; -import org.springframework.batch.infrastructure.item.data.MongoPagingItemReader; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; import org.springframework.data.domain.Sort.Order; @@ -38,7 +37,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemReaderTests.java index 3d826ef27f..d66c98f5a1 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2023 the original author or authors. + * Copyright 2013-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.adapter.DynamicMethodInvocationException; -import org.springframework.batch.infrastructure.item.data.RepositoryItemReader; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Pageable; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemWriterTests.java index 5ed5353b99..49e7fa0a76 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/RepositoryItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2013-2022 the original author or authors. + * Copyright 2013-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.data.RepositoryItemWriter; import org.springframework.data.repository.CrudRepository; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoItemWriterBuilderTests.java index 3899c3cc4a..a11780e992 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2025 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.data.MongoItemWriter; -import org.springframework.batch.infrastructure.item.data.builder.MongoItemWriterBuilder; import org.springframework.data.mapping.context.MappingContext; import org.springframework.data.mongodb.core.BulkOperations; import org.springframework.data.mongodb.core.MongoOperations; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoPagingItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoPagingItemReaderBuilderTests.java index 7024f23771..4f5ef0e820 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoPagingItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/MongoPagingItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.data.MongoPagingItemReader; -import org.springframework.batch.infrastructure.item.data.builder.MongoPagingItemReaderBuilder; import org.springframework.data.domain.Sort; import org.springframework.data.mongodb.core.MongoOperations; import org.springframework.data.mongodb.core.query.Query; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemReaderBuilderTests.java index 73fff39743..f6875474c2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import org.springframework.batch.infrastructure.item.data.RepositoryItemReader; -import org.springframework.batch.infrastructure.item.data.builder.RepositoryItemReaderBuilder; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Slice; import org.springframework.data.domain.Sort; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemWriterBuilderTests.java index 56e9521e66..d0b9fe9169 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/data/builder/RepositoryItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.data.RepositoryItemWriter; -import org.springframework.batch.infrastructure.item.data.builder.RepositoryItemWriterBuilder; import org.springframework.data.repository.CrudRepository; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/ExtendedConnectionDataSourceProxyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/ExtendedConnectionDataSourceProxyTests.java index 4166a0703a..cae15a8b97 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/ExtendedConnectionDataSourceProxyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/ExtendedConnectionDataSourceProxyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2023 the original author or authors. + * Copyright 2009-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.database.ExtendedConnectionDataSourceProxy; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.jdbc.datasource.DataSourceUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterClassicTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterClassicTests.java index c27b15e7d8..faf35d41fb 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterClassicTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterClassicTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -import org.springframework.batch.infrastructure.item.database.JdbcBatchItemWriter; import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.dao.DataAccessException; import org.springframework.dao.EmptyResultDataAccessException; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterNamedParameterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterNamedParameterTests.java index ce24df668c..c1f85ca21a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterNamedParameterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcBatchItemWriterNamedParameterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; -import org.springframework.batch.infrastructure.item.database.BeanPropertyItemSqlParameterSourceProvider; -import org.springframework.batch.infrastructure.item.database.JdbcBatchItemWriter; import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.dao.EmptyResultDataAccessException; import org.springframework.jdbc.core.namedparam.BeanPropertySqlParameterSource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderConfigTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderConfigTests.java index 63283beaad..78727ba658 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderConfigTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderConfigTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.database.JdbcPagingItemReader; import org.springframework.test.context.junit.jupiter.SpringJUnitConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderEmptyResultSetTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderEmptyResultSetTests.java index 719569bc3b..129e22d485 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderEmptyResultSetTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcPagingItemReaderEmptyResultSetTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2022 the original author or authors. + * Copyright 2021-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ItemReader; -import org.springframework.batch.infrastructure.item.database.JdbcPagingItemReader; -import org.springframework.batch.infrastructure.item.database.Order; import org.springframework.batch.infrastructure.item.database.support.HsqlPagingQueryProvider; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.SingleColumnRowMapper; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcParameterUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcParameterUtilsTests.java index 6f180a164d..048052d6ff 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcParameterUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JdbcParameterUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ import java.util.List; import java.util.ArrayList; -import org.springframework.batch.infrastructure.item.database.JdbcParameterUtils; - /** * @author Thomas Risberg */ diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JpaItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JpaItemWriterTests.java index 2f962035d2..489049c2a6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JpaItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/JpaItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,13 +23,11 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.database.JpaItemWriter; import org.springframework.orm.jpa.EntityManagerHolder; import org.springframework.transaction.support.TransactionSynchronizationManager; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcCursorItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcCursorItemReaderBuilderTests.java index 5c7eb9e9f7..8a68a251e9 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcCursorItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcCursorItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2016-2025 the original author or authors. + * Copyright 2016-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.database.JdbcCursorItemReader; -import org.springframework.batch.infrastructure.item.database.builder.JdbcCursorItemReaderBuilder; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcPagingItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcPagingItemReaderBuilderTests.java index 435559d528..256fd60b9b 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcPagingItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JdbcPagingItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2025 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.database.JdbcPagingItemReader; import org.springframework.batch.infrastructure.item.database.Order; -import org.springframework.batch.infrastructure.item.database.builder.JdbcPagingItemReaderBuilder; import org.springframework.batch.infrastructure.item.database.support.AbstractSqlPagingQueryProvider; import org.springframework.batch.infrastructure.item.database.support.HsqlPagingQueryProvider; import org.springframework.context.ConfigurableApplicationContext; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JpaItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JpaItemWriterBuilderTests.java index 214745db20..18e29f885a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JpaItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/builder/JpaItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2023 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.database.JpaItemWriter; -import org.springframework.batch.infrastructure.item.database.builder.JpaItemWriterBuilder; import org.springframework.orm.jpa.EntityManagerHolder; import org.springframework.transaction.support.TransactionSynchronizationManager; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractPagingQueryProviderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractPagingQueryProviderIntegrationTests.java index bb84bfc728..0d88b827d6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractPagingQueryProviderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractPagingQueryProviderIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.database.Order; -import org.springframework.batch.infrastructure.item.database.support.AbstractSqlPagingQueryProvider; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractSqlPagingQueryProviderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractSqlPagingQueryProviderTests.java index ea0975aef2..6b0d9c6690 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractSqlPagingQueryProviderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/AbstractSqlPagingQueryProviderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.database.Order; -import org.springframework.batch.infrastructure.item.database.support.AbstractSqlPagingQueryProvider; /** * @author Thomas Risberg diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/ColumnMapExecutionContextRowMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/ColumnMapExecutionContextRowMapperTests.java index 79206ace02..ddd51315fa 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/ColumnMapExecutionContextRowMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/ColumnMapExecutionContextRowMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2023 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.database.support.ColumnMapItemPreparedStatementSetter; - /** * @author Lucas Ward * @author Will Schipp diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/DefaultDataFieldMaxValueIncrementerFactoryTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/DefaultDataFieldMaxValueIncrementerFactoryTests.java index 72f5ad3f49..b8cdb59cb6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/DefaultDataFieldMaxValueIncrementerFactoryTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/DefaultDataFieldMaxValueIncrementerFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.database.support.DefaultDataFieldMaxValueIncrementerFactory; -import org.springframework.batch.infrastructure.item.database.support.SqliteMaxValueIncrementer; import org.springframework.jdbc.support.incrementer.Db2LuwMaxValueIncrementer; import org.springframework.jdbc.support.incrementer.Db2MainframeMaxValueIncrementer; import org.springframework.jdbc.support.incrementer.DerbyMaxValueIncrementer; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/H2PagingQueryProviderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/H2PagingQueryProviderIntegrationTests.java index 5f029474da..2e64154e69 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/H2PagingQueryProviderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/H2PagingQueryProviderIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 the original author or authors. + * Copyright 2022-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.junit.jupiter.params.provider.EnumSource; import org.springframework.batch.infrastructure.item.database.Order; -import org.springframework.batch.infrastructure.item.database.support.H2PagingQueryProvider; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.support.JdbcTransactionManager; import org.springframework.jdbc.datasource.SimpleDriverDataSource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryUtilsTests.java index 15caab286a..c2b06eba3f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqlPagingQueryUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.database.Order; -import org.springframework.batch.infrastructure.item.database.support.AbstractSqlPagingQueryProvider; -import org.springframework.batch.infrastructure.item.database.support.SqlPagingQueryUtils; /** * @author Thomas Risberg diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqliteMaxValueIncrementerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqliteMaxValueIncrementerTests.java index 15055e1fae..34fca86df3 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqliteMaxValueIncrementerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/database/support/SqliteMaxValueIncrementerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2022 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.database.support.SqliteMaxValueIncrementer; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.datasource.SimpleDriverDataSource; import org.springframework.test.jdbc.JdbcTestUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/DefaultBufferedReaderFactoryTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/DefaultBufferedReaderFactoryTests.java index e105a82a1d..b3a17d3fa2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/DefaultBufferedReaderFactoryTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/DefaultBufferedReaderFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.DefaultBufferedReaderFactory; import org.springframework.core.io.ByteArrayResource; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemReaderTests.java index dc08b3c5c5..554a1f346e 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2023 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,9 +34,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemCountAware; import org.springframework.batch.infrastructure.item.ItemStreamException; -import org.springframework.batch.infrastructure.item.file.FlatFileItemReader; -import org.springframework.batch.infrastructure.item.file.FlatFileParseException; -import org.springframework.batch.infrastructure.item.file.LineMapper; import org.springframework.batch.infrastructure.item.file.mapping.PassThroughLineMapper; import org.springframework.batch.infrastructure.item.file.separator.RecordSeparatorPolicy; import org.springframework.core.io.AbstractResource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemWriterTests.java index d5d356f356..46f1dacc19 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStreamException; import org.springframework.batch.infrastructure.item.UnexpectedInputException; -import org.springframework.batch.infrastructure.item.file.FlatFileItemWriter; import org.springframework.batch.infrastructure.item.file.transform.PassThroughLineAggregator; import org.springframework.batch.infrastructure.support.transaction.ResourcelessTransactionManager; import org.springframework.core.io.FileSystemResource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileParseExceptionTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileParseExceptionTests.java index c96deb2b0d..989ccdc0e5 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileParseExceptionTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/FlatFileParseExceptionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.common.AbstractExceptionTests; -import org.springframework.batch.infrastructure.item.file.FlatFileParseException; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderIntegrationTests.java index 5e0335fa95..05b57778cf 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2023 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,9 +27,6 @@ import org.springframework.batch.infrastructure.item.*; import org.springframework.batch.infrastructure.item.UnexpectedInputException; -import org.springframework.batch.infrastructure.item.file.FlatFileItemReader; -import org.springframework.batch.infrastructure.item.file.MultiResourceItemReader; -import org.springframework.batch.infrastructure.item.file.ResourceAwareItemReaderItemStream; import org.springframework.batch.infrastructure.item.file.mapping.PassThroughLineMapper; import org.springframework.core.io.AbstractResource; import org.springframework.core.io.ByteArrayResource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderResourceAwareTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderResourceAwareTests.java index 3001277bf1..dbaea576b2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderResourceAwareTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/MultiResourceItemReaderResourceAwareTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,9 +19,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ResourceAware; -import org.springframework.batch.infrastructure.item.file.FlatFileItemReader; -import org.springframework.batch.infrastructure.item.file.LineMapper; -import org.springframework.batch.infrastructure.item.file.MultiResourceItemReader; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/ResourcesItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/ResourcesItemReaderTests.java index 3dc1e66156..5330274c43 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/ResourcesItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/ResourcesItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2022 the original author or authors. + * Copyright 2009-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ExecutionContext; -import org.springframework.batch.infrastructure.item.file.ResourcesItemReader; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleBinaryBufferedReaderFactoryTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleBinaryBufferedReaderFactoryTests.java index 046acaa1d2..b37401d5f2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleBinaryBufferedReaderFactoryTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleBinaryBufferedReaderFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2024 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; -import org.springframework.batch.infrastructure.item.file.SimpleBinaryBufferedReaderFactory; import org.springframework.core.io.ByteArrayResource; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleResourceSuffixCreatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleResourceSuffixCreatorTests.java index aa98e6da2a..3a255308ee 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleResourceSuffixCreatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/SimpleResourceSuffixCreatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.SimpleResourceSuffixCreator; - /** * Tests for {@link SimpleResourceSuffixCreator}. */ diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilderTests.java index 1e1eb1ad99..81b3489539 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/builder/FlatFileItemReaderBuilderTests.java @@ -26,10 +26,8 @@ import org.junit.jupiter.api.function.Executable; import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.file.FlatFileItemReader; -import org.springframework.batch.infrastructure.item.file.builder.FlatFileItemReaderBuilder; import org.springframework.batch.infrastructure.item.file.mapping.BeanWrapperFieldSetMapper; import org.springframework.batch.infrastructure.item.file.mapping.DefaultLineMapper; -import org.springframework.batch.infrastructure.item.file.mapping.FieldSetMapper; import org.springframework.batch.infrastructure.item.file.mapping.RecordFieldSetMapper; import org.springframework.batch.infrastructure.item.file.separator.DefaultRecordSeparatorPolicy; import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperConcurrentTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperConcurrentTests.java index 4dcb5cb396..cd7550b77f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperConcurrentTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperConcurrentTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.BeanWrapperFieldSetMapper; import org.springframework.batch.infrastructure.item.file.transform.DelimitedLineTokenizer; class BeanWrapperFieldSetMapperConcurrentTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperFuzzyMatchingTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperFuzzyMatchingTests.java index f48fb6fa8a..a9482de33b 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperFuzzyMatchingTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperFuzzyMatchingTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.BeanWrapperFieldSetMapper; import org.springframework.batch.infrastructure.item.file.transform.DelimitedLineTokenizer; import org.springframework.beans.NotWritablePropertyException; import org.springframework.validation.BindException; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperTests.java index 42fb32fff5..c5cb57bbe7 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/BeanWrapperFieldSetMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.BeanWrapperFieldSetMapper; import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; import org.springframework.batch.infrastructure.item.file.transform.FieldSet; import org.springframework.beans.BeanWrapperImpl; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/DefaultLineMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/DefaultLineMapperTests.java index c7676030e0..4ced425d9c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/DefaultLineMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/DefaultLineMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.DefaultLineMapper; -import org.springframework.batch.infrastructure.item.file.mapping.FieldSetMapper; import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; import org.springframework.batch.infrastructure.item.file.transform.DelimitedLineTokenizer; import org.springframework.batch.infrastructure.item.file.transform.FieldSet; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughFieldSetMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughFieldSetMapperTests.java index a06a425205..21403a1514 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughFieldSetMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughFieldSetMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.PassThroughFieldSetMapper; import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; import org.springframework.batch.infrastructure.item.file.transform.FieldSet; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughLineMapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughLineMapperTests.java index b864745727..097c1d370e 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughLineMapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PassThroughLineMapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.PassThroughLineMapper; - /** * Tests for {@link PassThroughLineMapper}. */ diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PropertyMatchesTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PropertyMatchesTests.java index 7176e28a9e..01e4fc26e3 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PropertyMatchesTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/mapping/PropertyMatchesTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.mapping.PropertyMatches; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/DefaultRecordSeparatorPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/DefaultRecordSeparatorPolicyTests.java index e93dde59b8..d519bcc1c9 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/DefaultRecordSeparatorPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/DefaultRecordSeparatorPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.separator.DefaultRecordSeparatorPolicy; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/JsonRecordSeparatorPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/JsonRecordSeparatorPolicyTests.java index bdc535136e..9f036582ca 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/JsonRecordSeparatorPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/JsonRecordSeparatorPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2022 the original author or authors. + * Copyright 2009-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.separator.JsonRecordSeparatorPolicy; - class JsonRecordSeparatorPolicyTests { private final JsonRecordSeparatorPolicy policy = new JsonRecordSeparatorPolicy(); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SimpleRecordSeparatorPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SimpleRecordSeparatorPolicyTests.java index 5354c1f383..6ba50375d6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SimpleRecordSeparatorPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SimpleRecordSeparatorPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.separator.SimpleRecordSeparatorPolicy; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicyTests.java index a63dde7c52..06e1fe3b8c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/separator/SuffixRecordSeparatorPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.separator.SuffixRecordSeparatorPolicy; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/CommonLineTokenizerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/CommonLineTokenizerTests.java index 0810ba7320..bc89155ce8 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/CommonLineTokenizerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/CommonLineTokenizerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.AbstractLineTokenizer; - import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetFactoryTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetFactoryTests.java index bafbb3f662..db37c3b3fe 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetFactoryTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,9 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSetFactory; -import org.springframework.batch.infrastructure.item.file.transform.FieldSet; - /** * @author Dave Syer * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetTests.java index 06d7d07682..86bce24166 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DefaultFieldSetTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,9 +33,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; -import org.springframework.batch.infrastructure.item.file.transform.FieldSet; - class DefaultFieldSetTests { DefaultFieldSet fieldSet; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineAggregatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineAggregatorTests.java index 27f6167bc1..5a9936f3bc 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineAggregatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineAggregatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.DelimitedLineAggregator; - /** * @author Dave Syer * @author Glenn Renfro diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineTokenizerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineTokenizerTests.java index b5d1b0098f..ee60787dcf 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineTokenizerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/DelimitedLineTokenizerTests.java @@ -18,11 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.AbstractLineTokenizer; -import org.springframework.batch.infrastructure.item.file.transform.DelimitedLineTokenizer; -import org.springframework.batch.infrastructure.item.file.transform.FieldSet; -import org.springframework.batch.infrastructure.item.file.transform.IncorrectTokenCountException; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FixedLengthTokenizerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FixedLengthTokenizerTests.java index 3ac8f601c5..99ff54145c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FixedLengthTokenizerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FixedLengthTokenizerTests.java @@ -21,8 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.*; - class FixedLengthTokenizerTests { private final FixedLengthTokenizer tokenizer = new FixedLengthTokenizer(); diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregatorTests.java index 074a4a2d4b..3d78fcf351 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/FormatterLineAggregatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,12 +19,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.FieldExtractor; -import org.springframework.batch.infrastructure.item.file.transform.FormatterLineAggregator; - /** * Unit tests for {@link FormatterLineAggregator} * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughFieldExtractorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughFieldExtractorTests.java index ea1ad2cb89..41dc99482b 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughFieldExtractorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughFieldExtractorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,10 +24,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.DefaultFieldSet; -import org.springframework.batch.infrastructure.item.file.transform.FieldSet; -import org.springframework.batch.infrastructure.item.file.transform.PassThroughFieldExtractor; - /** * @author Dan Garrette * @since 2.0 diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughLineAggregatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughLineAggregatorTests.java index c589aceff9..6432d42776 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughLineAggregatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PassThroughLineAggregatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,9 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.LineAggregator; -import org.springframework.batch.infrastructure.item.file.transform.PassThroughLineAggregator; - import static org.junit.jupiter.api.Assertions.assertEquals; class PassThroughLineAggregatorTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PatternMatchingCompositeLineTokenizerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PatternMatchingCompositeLineTokenizerTests.java index 6612e0be72..e14b278ede 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PatternMatchingCompositeLineTokenizerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/PatternMatchingCompositeLineTokenizerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,8 +26,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.*; - /** * @author Ben Hale * @author Dan Garrette diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RangeArrayPropertyEditorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RangeArrayPropertyEditorTests.java index 48fbb8b745..a55b24cb82 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RangeArrayPropertyEditorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RangeArrayPropertyEditorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,9 +18,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.Range; -import org.springframework.batch.infrastructure.item.file.transform.RangeArrayPropertyEditor; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractorTests.java index 0f78d504e9..2752e813be 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RecordFieldExtractorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 the original author or authors. + * Copyright 2022-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.RecordFieldExtractor; - import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RegexLineTokenizerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RegexLineTokenizerTests.java index d188099700..f67c89aa88 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RegexLineTokenizerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/file/transform/RegexLineTokenizerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,8 +19,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.file.transform.RegexLineTokenizer; - import static org.junit.jupiter.api.Assertions.*; class RegexLineTokenizerTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/ConsumerItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/ConsumerItemWriterTests.java index c1c2ffdceb..3a1b7500d5 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/ConsumerItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/ConsumerItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.function.ConsumerItemWriter; /** * Test class for {@link ConsumerItemWriter}. diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/FunctionItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/FunctionItemProcessorTests.java index c08b0107b4..b3137d5ffc 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/FunctionItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/FunctionItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ItemProcessor; -import org.springframework.batch.infrastructure.item.function.FunctionItemProcessor; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/PredicateFilteringItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/PredicateFilteringItemProcessorTests.java index 53e1528820..7131167983 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/PredicateFilteringItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/PredicateFilteringItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.function.PredicateFilteringItemProcessor; - /** * Test class for {@link PredicateFilteringItemProcessor}. * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/SupplierItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/SupplierItemReaderTests.java index 5fe1196c3d..066ac404d4 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/SupplierItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/function/SupplierItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.function.SupplierItemReader; - /** * Test class for {@link SupplierItemReader}. * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemReaderTests.java index 5009c11912..bac68ac74f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.jms.JmsItemReader; import org.springframework.jms.core.JmsOperations; import org.springframework.jms.core.JmsTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemWriterTests.java index f590bed1f4..d9c54bd944 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.jms.JmsItemWriter; import org.springframework.jms.core.JmsOperations; import org.springframework.jms.core.JmsTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodArgumentsKeyGeneratorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodArgumentsKeyGeneratorTests.java index 0bb303b080..ba35d5e01e 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodArgumentsKeyGeneratorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodArgumentsKeyGeneratorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,8 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.jms.JmsItemReader; -import org.springframework.batch.infrastructure.item.jms.JmsMethodArgumentsKeyGenerator; import org.springframework.jms.core.JmsTemplate; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodInvocationRecovererTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodInvocationRecovererTests.java index 822c780727..8422adcc47 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodInvocationRecovererTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsMethodInvocationRecovererTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.jms.JmsMethodInvocationRecoverer; import org.springframework.jms.core.JmsOperations; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsNewMethodArgumentsIdentifierTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsNewMethodArgumentsIdentifierTests.java index f7665d3b29..b9c9d4eb0d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsNewMethodArgumentsIdentifierTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/JmsNewMethodArgumentsIdentifierTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,8 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.jms.JmsNewMethodArgumentsIdentifier; - /** * @author Dave Syer * @author Will Schipp diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemReaderBuilderTests.java index 8d8217ed14..3356201f2c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.jms.JmsItemReader; -import org.springframework.batch.infrastructure.item.jms.builder.JmsItemReaderBuilder; import org.springframework.jms.core.JmsOperations; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemWriterBuilderTests.java index ce52892d2f..fa938016ed 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/jms/builder/JmsItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.jms.JmsItemWriter; -import org.springframework.batch.infrastructure.item.jms.builder.JmsItemWriterBuilder; import org.springframework.jms.core.JmsOperations; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/GsonJsonObjectMarshallerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/GsonJsonObjectMarshallerTests.java index 856497f2e1..d8cd572f25 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/GsonJsonObjectMarshallerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/GsonJsonObjectMarshallerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.json.GsonJsonObjectMarshaller; - import static org.junit.jupiter.api.Assertions.assertEquals; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JacksonJsonObjectMarshallerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JacksonJsonObjectMarshallerTests.java index 29bb1f3734..519f63d8b7 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JacksonJsonObjectMarshallerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JacksonJsonObjectMarshallerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.json.JacksonJsonObjectMarshaller; - import static org.junit.jupiter.api.Assertions.assertEquals; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JsonItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JsonItemReaderTests.java index cd695665ca..e3ff3c89a0 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JsonItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/JsonItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,8 +27,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStreamException; -import org.springframework.batch.infrastructure.item.json.JsonItemReader; -import org.springframework.batch.infrastructure.item.json.JsonObjectReader; import org.springframework.core.io.AbstractResource; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonFileItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonFileItemWriterBuilderTests.java index a19aad89a0..e4ea0ed18a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonFileItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonFileItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2023 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,6 @@ import org.springframework.batch.infrastructure.item.file.FlatFileHeaderCallback; import org.springframework.batch.infrastructure.item.json.JsonFileItemWriter; import org.springframework.batch.infrastructure.item.json.JsonObjectMarshaller; -import org.springframework.batch.infrastructure.item.json.builder.JsonFileItemWriterBuilder; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.WritableResource; import org.springframework.test.util.ReflectionTestUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonItemReaderBuilderTests.java index ce25773574..7744664e0d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/json/builder/JsonItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.json.JsonItemReader; import org.springframework.batch.infrastructure.item.json.JsonObjectReader; -import org.springframework.batch.infrastructure.item.json.builder.JsonItemReaderBuilder; import org.springframework.core.io.Resource; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderIntegrationTests.java index 68243504ff..846d88f2e2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019-2025 the original author or authors. + * Copyright 2019-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,6 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.batch.infrastructure.item.ExecutionContext; -import org.springframework.batch.infrastructure.item.kafka.KafkaItemReader; import org.springframework.kafka.core.DefaultKafkaProducerFactory; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.kafka.core.ProducerFactory; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderTests.java index 1194b5d7a2..b6194f70de 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019-2023 the original author or authors. + * Copyright 2019-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ import org.apache.kafka.common.serialization.StringDeserializer; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.kafka.KafkaItemReader; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriterTests.java index 4a9ee5c102..a80010fcc2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/KafkaItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019-2023 the original author or authors. + * Copyright 2019-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,14 +26,10 @@ import org.mockito.quality.Strictness; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.kafka.KafkaItemWriter; import org.springframework.core.convert.converter.Converter; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.kafka.support.SendResult; -import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemReaderBuilderTests.java index 0731813536..dd56a27769 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019-2022 the original author or authors. + * Copyright 2019-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.kafka.KafkaItemReader; -import org.springframework.batch.infrastructure.item.kafka.builder.KafkaItemReaderBuilder; import org.springframework.test.util.ReflectionTestUtils; import static org.assertj.core.api.Assertions.assertThat; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemWriterBuilderTests.java index f1e1e88e2d..4792512ef1 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/kafka/builder/KafkaItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2019-2022 the original author or authors. + * Copyright 2019-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.kafka.KafkaItemWriter; -import org.springframework.batch.infrastructure.item.kafka.builder.KafkaItemWriterBuilder; import org.springframework.core.convert.converter.Converter; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.test.util.ReflectionTestUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ldif/support/MappingLdifReaderTestSupport.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ldif/support/MappingLdifReaderTestSupport.java index d1294afbe3..ddb78a5c43 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ldif/support/MappingLdifReaderTestSupport.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/ldif/support/MappingLdifReaderTestSupport.java @@ -21,7 +21,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ldif.MappingLdifReader; -import org.springframework.ldap.core.LdapAttributes; import static org.assertj.core.api.Assertions.assertThat; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/DefaultMailErrorHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/DefaultMailErrorHandlerTests.java index ea8696ee5e..c9712f1cbb 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/DefaultMailErrorHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/DefaultMailErrorHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.mail.DefaultMailErrorHandler; import org.springframework.mail.MailException; import org.springframework.mail.MailMessage; import org.springframework.mail.MailSendException; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/SimpleMailMessageItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/SimpleMailMessageItemWriterTests.java index d90fd4570b..53a73110f5 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/SimpleMailMessageItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/SimpleMailMessageItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.mail.SimpleMailMessageItemWriter; import org.springframework.mail.MailSendException; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java index 382b4cef0e..2e3a6bbf18 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/builder/SimpleMailMessageItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.mail.SimpleMailMessageItemWriter; -import org.springframework.batch.infrastructure.item.mail.builder.SimpleMailMessageItemWriterBuilder; import org.springframework.mail.MailSendException; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/javamail/MimeMessageItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/javamail/MimeMessageItemWriterTests.java index c2c06f9c3f..dc5fcf1506 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/javamail/MimeMessageItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/mail/javamail/MimeMessageItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.mail.javamail.MimeMessageItemWriter; import org.springframework.mail.MailSendException; import org.springframework.mail.MailSender; import org.springframework.mail.javamail.JavaMailSender; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemReaderTests.java index 5af9219b7d..56f1369e52 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.queue.BlockingQueueItemReader; import org.springframework.batch.infrastructure.item.queue.builder.BlockingQueueItemReaderBuilder; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemWriterTests.java index 92e738bf4b..29d5075a7f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/BlockingQueueItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.queue.BlockingQueueItemWriter; import org.springframework.batch.infrastructure.item.queue.builder.BlockingQueueItemWriterBuilder; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemReaderBuilderTests.java index dfece98a6d..dae133d671 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.queue.BlockingQueueItemReader; -import org.springframework.batch.infrastructure.item.queue.builder.BlockingQueueItemReaderBuilder; import org.springframework.test.util.ReflectionTestUtils; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemWriterBuilderTests.java index e0396468ae..37283efccb 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/queue/builder/BlockingQueueItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2024-2025 the original author or authors. + * Copyright 2024-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.queue.BlockingQueueItemWriter; -import org.springframework.batch.infrastructure.item.queue.builder.BlockingQueueItemWriterBuilder; import org.springframework.test.util.ReflectionTestUtils; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemReaderTests.java index c2f2009dbd..a235b1ac36 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.ExecutionContext; -import org.springframework.batch.infrastructure.item.redis.RedisItemReader; import org.springframework.data.redis.core.Cursor; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ScanOptions; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemWriterTests.java index 9900203313..bb85caf8d0 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/RedisItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.Chunk; -import org.springframework.batch.infrastructure.item.redis.RedisItemWriter; import org.springframework.core.convert.converter.Converter; import org.springframework.data.redis.core.RedisTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemReaderBuilderTests.java index 3e449f3da8..4d8e3f4a68 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.redis.RedisItemReader; -import org.springframework.batch.infrastructure.item.redis.builder.RedisItemReaderBuilder; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.data.redis.core.ScanOptions; import org.springframework.test.util.ReflectionTestUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemWriterBuilderTests.java index c0072251c9..b39a809a4c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/redis/builder/RedisItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.redis.RedisItemWriter; -import org.springframework.batch.infrastructure.item.redis.builder.RedisItemWriterBuilder; import org.springframework.core.convert.converter.Converter; import org.springframework.data.redis.core.RedisTemplate; import org.springframework.test.util.ReflectionTestUtils; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/AbstractSynchronizedItemStreamWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/AbstractSynchronizedItemStreamWriterTests.java index 826d842846..6de617fe2a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/AbstractSynchronizedItemStreamWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/AbstractSynchronizedItemStreamWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-2023 the original author or authors. + * Copyright 2020-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStreamWriter; -import org.springframework.batch.infrastructure.item.support.SynchronizedItemStreamWriter; import static org.mockito.Mockito.verify; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemProcessorTests.java index 8c9e53095f..39618bf537 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2023 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ItemProcessor; -import org.springframework.batch.infrastructure.item.support.ClassifierCompositeItemProcessor; import org.springframework.classify.PatternMatchingClassifier; import org.springframework.classify.SubclassClassifier; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemWriterTests.java index 4220d7d816..7261236640 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ClassifierCompositeItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.ItemWriter; -import org.springframework.batch.infrastructure.item.support.ClassifierCompositeItemWriter; import org.springframework.classify.PatternMatchingClassifier; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemProcessorTests.java index d6abfe87a4..bf5e092903 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,17 +18,14 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -import java.util.ArrayList; import java.util.Arrays; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ItemProcessor; -import org.springframework.batch.infrastructure.item.support.CompositeItemProcessor; /** * Tests for {@link CompositeItemProcessor}. diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemStreamTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemStreamTests.java index 483206a951..f3ec850180 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemStreamTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemStreamTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,6 @@ import org.springframework.batch.infrastructure.item.ItemStream; import org.springframework.batch.infrastructure.item.ItemStreamException; import org.springframework.batch.infrastructure.item.ItemStreamSupport; -import org.springframework.batch.infrastructure.item.support.CompositeItemStream; /** * @author Dave Syer diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriterTests.java index a63c134764..9879f90d7f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/CompositeItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2025 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,8 +26,6 @@ import org.springframework.batch.infrastructure.item.ItemStreamException; import org.springframework.batch.infrastructure.item.ItemStreamWriter; import org.springframework.batch.infrastructure.item.ItemWriter; -import org.springframework.batch.infrastructure.item.support.AbstractFileItemWriter; -import org.springframework.batch.infrastructure.item.support.CompositeItemWriter; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/IteratorItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/IteratorItemReaderTests.java index 839c37fc43..de964dfca4 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/IteratorItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/IteratorItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.support.IteratorItemReader; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ListItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ListItemReaderTests.java index 2e8ca83d77..66162ed084 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ListItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ListItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.support.ListItemReader; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ScriptItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ScriptItemProcessorTests.java index c1be72c938..17def79d7c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ScriptItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/ScriptItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2023 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.support.ScriptItemProcessor; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import org.springframework.scripting.bsh.BshScriptEvaluator; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SingleItemPeekableItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SingleItemPeekableItemReaderTests.java index d183dee77b..b1dbc9bfdc 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SingleItemPeekableItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SingleItemPeekableItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import org.jspecify.annotations.Nullable; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.support.AbstractItemCountingItemStreamItemReader; -import org.springframework.batch.infrastructure.item.support.SingleItemPeekableItemReader; import org.springframework.batch.infrastructure.item.ExecutionContext; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemReaderTests.java index e690add7ec..cbd34bb037 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.ItemReader; -import org.springframework.batch.infrastructure.item.support.SynchronizedItemReader; import static org.mockito.Mockito.verify; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemWriterTests.java index d7456d474d..ebf24c5706 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/SynchronizedItemWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.ItemWriter; -import org.springframework.batch.infrastructure.item.support.SynchronizedItemWriter; import static org.mockito.Mockito.verify; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/TransactionAwareListItemReaderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/TransactionAwareListItemReaderTests.java index 6e57265512..cfad6ad84f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/TransactionAwareListItemReaderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/TransactionAwareListItemReaderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.support.ListItemReader; import org.springframework.batch.infrastructure.support.transaction.ResourcelessTransactionManager; import org.springframework.batch.infrastructure.support.transaction.TransactionAwareProxyFactory; import org.springframework.transaction.PlatformTransactionManager; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemProcessorBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemProcessorBuilderTests.java index 193e1c3657..117ae228f7 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemProcessorBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemProcessorBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.batch.infrastructure.item.ItemProcessor; import org.springframework.batch.infrastructure.item.support.ClassifierCompositeItemProcessor; -import org.springframework.batch.infrastructure.item.support.builder.ClassifierCompositeItemProcessorBuilder; import org.springframework.classify.PatternMatchingClassifier; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemWriterBuilderTests.java index f4038cea29..b5bfe2388e 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ClassifierCompositeItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2023 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,6 @@ import org.springframework.batch.infrastructure.item.Chunk; import org.springframework.batch.infrastructure.item.ItemWriter; import org.springframework.batch.infrastructure.item.support.ClassifierCompositeItemWriter; -import org.springframework.batch.infrastructure.item.support.builder.ClassifierCompositeItemWriterBuilder; import org.springframework.classify.PatternMatchingClassifier; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemProcessorBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemProcessorBuilderTests.java index f355f60933..47bbd6431a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemProcessorBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemProcessorBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.batch.infrastructure.item.ItemProcessor; import org.springframework.batch.infrastructure.item.support.CompositeItemProcessor; -import org.springframework.batch.infrastructure.item.support.builder.CompositeItemProcessorBuilder; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertSame; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemWriterBuilderTests.java index 40c9886900..3e498f845d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/CompositeItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,7 +26,6 @@ import org.springframework.batch.infrastructure.item.ItemStreamWriter; import org.springframework.batch.infrastructure.item.ItemWriter; import org.springframework.batch.infrastructure.item.support.CompositeItemWriter; -import org.springframework.batch.infrastructure.item.support.builder.CompositeItemWriterBuilder; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ScriptItemProcessorBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ScriptItemProcessorBuilderTests.java index 7617c9262d..2731099215 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ScriptItemProcessorBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/ScriptItemProcessorBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.support.ScriptItemProcessor; -import org.springframework.batch.infrastructure.item.support.builder.ScriptItemProcessorBuilder; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemReaderBuilderTests.java index deecf8fbd9..8c20891d7c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.batch.infrastructure.item.ItemReader; import org.springframework.batch.infrastructure.item.support.SynchronizedItemReader; -import org.springframework.batch.infrastructure.item.support.builder.SynchronizedItemReaderBuilder; import org.springframework.test.util.ReflectionTestUtils; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemWriterBuilderTests.java index 1072f6fcde..6dec54c3d8 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/support/builder/SynchronizedItemWriterBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.springframework.batch.infrastructure.item.ItemWriter; import org.springframework.batch.infrastructure.item.support.SynchronizedItemWriter; -import org.springframework.batch.infrastructure.item.support.builder.SynchronizedItemWriterBuilder; import org.springframework.test.util.ReflectionTestUtils; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/ExecutionContextUserSupportTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/ExecutionContextUserSupportTests.java index 4f0fbe1415..1d08e2fd64 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/ExecutionContextUserSupportTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/ExecutionContextUserSupportTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.util.ExecutionContextUserSupport; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/FileUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/FileUtilsTests.java index 4b26d16ef9..2218d500d4 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/FileUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/util/FileUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2025 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.item.ItemStreamException; -import org.springframework.batch.infrastructure.item.util.FileUtils; import org.springframework.util.Assert; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/BeanValidatingItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/BeanValidatingItemProcessorTests.java index c00facc471..333965dfeb 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/BeanValidatingItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/BeanValidatingItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2018-2022 the original author or authors. + * Copyright 2018-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.validator.BeanValidatingItemProcessor; -import org.springframework.batch.infrastructure.item.validator.ValidationException; - import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/SpringValidatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/SpringValidatorTests.java index 2fc57ba49c..cb7a0831c8 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/SpringValidatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/SpringValidatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.validator.SpringValidator; -import org.springframework.batch.infrastructure.item.validator.ValidationException; import org.springframework.validation.BindException; import org.springframework.validation.Errors; import org.springframework.validation.Validator; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidatingItemProcessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidatingItemProcessorTests.java index 9f49f1134c..cf992065d6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidatingItemProcessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidatingItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,10 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.validator.ValidatingItemProcessor; -import org.springframework.batch.infrastructure.item.validator.ValidationException; -import org.springframework.batch.infrastructure.item.validator.Validator; - /** * Tests for {@link ValidatingItemProcessor}. */ diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidationExceptionTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidationExceptionTests.java index dd1c93da69..5f8fc5ab87 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidationExceptionTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/validator/ValidationExceptionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.infrastructure.item.validator; import org.springframework.batch.infrastructure.common.AbstractExceptionTests; -import org.springframework.batch.infrastructure.item.validator.ValidationException; class ValidationExceptionTests extends AbstractExceptionTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemReaderBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemReaderBuilderTests.java index 8ef45aa9cc..7dba69e2de 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemReaderBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemReaderBuilderTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2017-2022 the original author or authors. + * Copyright 2017-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,14 +28,12 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStreamException; import org.springframework.batch.infrastructure.item.xml.StaxEventItemReader; -import org.springframework.batch.infrastructure.item.xml.builder.StaxEventItemReaderBuilder; import org.springframework.core.io.ByteArrayResource; import org.springframework.core.io.Resource; import org.springframework.oxm.jaxb.Jaxb2Marshaller; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.springframework.test.util.ReflectionTestUtils.getField; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemWriterBuilderTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemWriterBuilderTests.java index e7617731a4..522279502f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemWriterBuilderTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/builder/StaxEventItemWriterBuilderTests.java @@ -32,7 +32,6 @@ import org.springframework.batch.infrastructure.item.ExecutionContext; import org.springframework.batch.infrastructure.item.ItemStreamException; import org.springframework.batch.infrastructure.item.xml.StaxEventItemWriter; -import org.springframework.batch.infrastructure.item.xml.builder.StaxEventItemWriterBuilder; import org.springframework.batch.infrastructure.support.transaction.TransactionAwareBufferedWriter; import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.WritableResource; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/AbstractEventWriterWrapperTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/AbstractEventWriterWrapperTests.java index 1581c6453a..35c171ebb2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/AbstractEventWriterWrapperTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/AbstractEventWriterWrapperTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,8 +26,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.xml.stax.AbstractEventWriterWrapper; - import static org.junit.jupiter.api.Assertions.assertEquals; /** diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/NoStartEndDocumentWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/NoStartEndDocumentWriterTests.java index a9e060d877..6e490dfed5 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/NoStartEndDocumentWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/NoStartEndDocumentWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2022 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.item.xml.stax.NoStartEndDocumentStreamWriter; - import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.never; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnclosedElementCollectingEventWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnclosedElementCollectingEventWriterTests.java index 893a64a3b0..5e05cdd1a3 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnclosedElementCollectingEventWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnclosedElementCollectingEventWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2022 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,8 +27,6 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -import org.springframework.batch.infrastructure.item.xml.stax.UnclosedElementCollectingEventWriter; - /** * Tests for {@link UnclosedElementCollectingEventWriter} * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnopenedElementClosingEventWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnopenedElementClosingEventWriterTests.java index 309c9d0001..10328df13a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnopenedElementClosingEventWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/item/xml/stax/UnopenedElementClosingEventWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2022 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -37,8 +37,6 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -import org.springframework.batch.infrastructure.item.xml.stax.UnopenedElementClosingEventWriter; - /** * Tests for {@link UnopenedElementClosingEventWriter} * diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/poller/DirectPollerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/poller/DirectPollerTests.java index ed75308c1c..707d5a838a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/poller/DirectPollerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/poller/DirectPollerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,9 +27,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.poller.DirectPoller; -import org.springframework.batch.infrastructure.poller.Poller; - /** * @author Dave Syer * @author Mahmoud Ben Hassine diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/RepeatExceptionTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/RepeatExceptionTests.java index 422b2cf8c7..84b8b27544 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/RepeatExceptionTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/RepeatExceptionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.infrastructure.repeat; import org.springframework.batch.infrastructure.common.AbstractExceptionTests; -import org.springframework.batch.infrastructure.repeat.RepeatException; class RepeatExceptionTests extends AbstractExceptionTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/callback/NestedRepeatCallbackTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/callback/NestedRepeatCallbackTests.java index 7273fdecec..c3bfe90a1f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/callback/NestedRepeatCallbackTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/callback/NestedRepeatCallbackTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatStatus; -import org.springframework.batch.infrastructure.repeat.callback.NestedRepeatCallback; import org.springframework.batch.infrastructure.repeat.support.RepeatTemplate; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextCounterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextCounterTests.java index 920923966d..e4ca04d6ed 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextCounterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextCounterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.context.RepeatContextCounter; -import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextSupportTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextSupportTests.java index 3874e2f292..659202149a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextSupportTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/RepeatContextSupportTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/SynchronizedAttributeAccessorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/SynchronizedAttributeAccessorTests.java index e9b5488535..8a1880d1ac 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/SynchronizedAttributeAccessorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/context/SynchronizedAttributeAccessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,7 +23,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.repeat.context.SynchronizedAttributeAccessor; import org.springframework.core.AttributeAccessorSupport; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/CompositeExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/CompositeExceptionHandlerTests.java index 7cca8a4e66..e673dc6353 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/CompositeExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/CompositeExceptionHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,9 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.repeat.exception.CompositeExceptionHandler; -import org.springframework.batch.infrastructure.repeat.exception.ExceptionHandler; - import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/DefaultExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/DefaultExceptionHandlerTests.java index ad937ff8f4..3543bfb1f0 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/DefaultExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/DefaultExceptionHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.exception.DefaultExceptionHandler; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/LogOrRethrowExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/LogOrRethrowExceptionHandlerTests.java index 5ce10220fa..a0d9f862fd 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/LogOrRethrowExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/LogOrRethrowExceptionHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.exception.LogOrRethrowExceptionHandler; import org.springframework.batch.infrastructure.repeat.exception.LogOrRethrowExceptionHandler.Level; import org.springframework.classify.ClassifierSupport; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/RethrowOnThresholdExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/RethrowOnThresholdExceptionHandlerTests.java index eb82859399..17d7c40cc9 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/RethrowOnThresholdExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/RethrowOnThresholdExceptionHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -27,7 +27,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatContext; import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; -import org.springframework.batch.infrastructure.repeat.exception.RethrowOnThresholdExceptionHandler; class RethrowOnThresholdExceptionHandlerTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/SimpleLimitExceptionHandlerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/SimpleLimitExceptionHandlerTests.java index 58ec74427c..95c8e8b11c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/SimpleLimitExceptionHandlerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/exception/SimpleLimitExceptionHandlerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; -import org.springframework.batch.infrastructure.repeat.exception.SimpleLimitExceptionHandler; /** * Unit tests for {@link SimpleLimitExceptionHandler} diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/interceptor/RepeatOperationsInterceptorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/interceptor/RepeatOperationsInterceptorTests.java index 99a105c6c3..a1ed50c5dc 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/interceptor/RepeatOperationsInterceptorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/interceptor/RepeatOperationsInterceptorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,6 @@ import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.batch.infrastructure.repeat.RepeatException; import org.springframework.batch.infrastructure.repeat.RepeatOperations; -import org.springframework.batch.infrastructure.repeat.interceptor.RepeatOperationsInterceptor; import org.springframework.batch.infrastructure.repeat.policy.SimpleCompletionPolicy; import org.springframework.batch.infrastructure.repeat.support.RepeatTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/listener/CompositeRepeatListenerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/listener/CompositeRepeatListenerTests.java index 2f0fee31f7..f47273714c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/listener/CompositeRepeatListenerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/listener/CompositeRepeatListenerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.springframework.batch.infrastructure.repeat.RepeatContext; import org.springframework.batch.infrastructure.repeat.RepeatListener; import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; -import org.springframework.batch.infrastructure.repeat.listener.CompositeRepeatListener; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/CountingCompletionPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/CountingCompletionPolicyTests.java index d07eaaafff..33b90306d2 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/CountingCompletionPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/CountingCompletionPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.batch.infrastructure.repeat.RepeatContext; import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; -import org.springframework.batch.infrastructure.repeat.policy.CountingCompletionPolicy; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/MockCompletionPolicySupport.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/MockCompletionPolicySupport.java index 0974add88e..324673d5d6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/MockCompletionPolicySupport.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/MockCompletionPolicySupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ package org.springframework.batch.infrastructure.repeat.policy; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.policy.CompletionPolicySupport; public class MockCompletionPolicySupport extends CompletionPolicySupport { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/SimpleCompletionPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/SimpleCompletionPolicyTests.java index 754b9fa9cb..e94b5e552d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/SimpleCompletionPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/SimpleCompletionPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.policy.SimpleCompletionPolicy; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/TimeoutCompletionPolicyTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/TimeoutCompletionPolicyTests.java index a52e6055cb..4ac74451d4 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/TimeoutCompletionPolicyTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/policy/TimeoutCompletionPolicyTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatStatus; import org.springframework.batch.infrastructure.repeat.RepeatContext; -import org.springframework.batch.infrastructure.repeat.policy.TimeoutTerminationPolicy; class TimeoutCompletionPolicyTests { diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/support/RepeatSynchronizationManagerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/support/RepeatSynchronizationManagerTests.java index 0bbfeacd5e..c1a0ad3173 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/support/RepeatSynchronizationManagerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/repeat/support/RepeatSynchronizationManagerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; import org.springframework.batch.infrastructure.repeat.RepeatContext; import org.springframework.batch.infrastructure.repeat.context.RepeatContextSupport; -import org.springframework.batch.infrastructure.repeat.support.RepeatSynchronizationManager; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/AnnotationMethodResolverTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/AnnotationMethodResolverTests.java index 8b9d957b88..5c31184cbe 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/AnnotationMethodResolverTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/AnnotationMethodResolverTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,8 +28,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.AnnotationMethodResolver; - /** * @author Mark Fisher * @author Mahmoud Ben Hassine diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeIntegrationTests.java index 0bbd9c08aa..8cfae9379d 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeIntegrationTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.DatabaseType; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseBuilder; import org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeTestUtils.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeTestUtils.java index 98aea65f27..ba50e2f459 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeTestUtils.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DatabaseTypeTestUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2017 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,8 +21,6 @@ import org.apache.commons.dbcp2.BasicDataSource; -import org.springframework.batch.infrastructure.support.DatabaseType; - import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrarTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrarTests.java index 35cacad30f..bb3044a9fa 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrarTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/DefaultPropertyEditorRegistrarTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.DefaultPropertyEditorRegistrar; -import org.springframework.batch.infrastructure.support.IntArrayPropertyEditor; import org.springframework.beans.BeanWrapperImpl; import org.springframework.beans.MutablePropertyValues; import org.springframework.beans.propertyeditors.CustomNumberEditor; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/LastModifiedResourceComparatorTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/LastModifiedResourceComparatorTests.java index 9a8b9ea52e..ff42cc122f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/LastModifiedResourceComparatorTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/LastModifiedResourceComparatorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.LastModifiedResourceComparator; import org.springframework.core.io.FileSystemResource; import java.io.File; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PatternMatcherTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PatternMatcherTests.java index 75000d4dd7..98b2819d38 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PatternMatcherTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PatternMatcherTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,8 +25,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.PatternMatcher; - /** * @author Dan Garrette * @since 2.0 diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PropertiesConverterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PropertiesConverterTests.java index 2b7ec4ec49..a61e8a275f 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PropertiesConverterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/PropertiesConverterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.PropertiesConverter; import org.springframework.util.StringUtils; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/ReflectionUtilsTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/ReflectionUtilsTests.java index c020e45a57..686dbeea55 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/ReflectionUtilsTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/ReflectionUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2014-2023 the original author or authors. + * Copyright 2014-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.ReflectionUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/SimpleMethodInvokerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/SimpleMethodInvokerTests.java index a682c28e00..e8fe8de6e6 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/SimpleMethodInvokerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/SimpleMethodInvokerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2023 the original author or authors. + * Copyright 2002-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.MethodInvoker; -import org.springframework.batch.infrastructure.support.SimpleMethodInvoker; import org.springframework.util.Assert; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/ResourcelessTransactionManagerTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/ResourcelessTransactionManagerTests.java index 3a5dcf3673..f6da3a620c 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/ResourcelessTransactionManagerTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/ResourcelessTransactionManagerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2022 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ import org.junit.jupiter.api.Test; -import org.springframework.batch.infrastructure.support.transaction.ResourcelessTransactionManager; import org.springframework.transaction.support.TransactionSynchronization; import org.springframework.transaction.support.TransactionSynchronizationManager; import org.springframework.transaction.support.TransactionTemplate; diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/TransactionAwareBufferedWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/TransactionAwareBufferedWriterTests.java index 3de3525b2c..950507072a 100644 --- a/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/TransactionAwareBufferedWriterTests.java +++ b/spring-batch-infrastructure/src/test/java/org/springframework/batch/infrastructure/support/transaction/TransactionAwareBufferedWriterTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,9 +24,6 @@ import org.junit.jupiter.api.Test; import org.mockito.ArgumentCaptor; -import org.springframework.batch.infrastructure.support.transaction.FlushFailedException; -import org.springframework.batch.infrastructure.support.transaction.ResourcelessTransactionManager; -import org.springframework.batch.infrastructure.support.transaction.TransactionAwareBufferedWriter; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.support.TransactionCallback; import org.springframework.transaction.support.TransactionTemplate; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/async/AsyncItemProcessorTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/async/AsyncItemProcessorTests.java index 8bab668a57..bff2bf6f9d 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/async/AsyncItemProcessorTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/async/AsyncItemProcessorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2023 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.batch.integration.async; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.ArrayList; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptorTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptorTests.java index 3bc7bd2c6f..94c8643483 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptorTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/MessageSourcePollerInterceptorTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2023 the original author or authors. + * Copyright 2010-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,7 +16,6 @@ package org.springframework.batch.integration.chunk; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJmsIntegrationTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJmsIntegrationTests.java index d8bb61ff3f..3e48ad9c3a 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJmsIntegrationTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkFaultTolerantStepJmsIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2025 the original author or authors. + * Copyright 2010-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +18,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.File; -import java.util.Collections; import java.util.Set; import org.junit.jupiter.api.BeforeAll; diff --git a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkStepIntegrationTests.java b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkStepIntegrationTests.java index 3cff77ae1e..832a3a0e02 100644 --- a/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkStepIntegrationTests.java +++ b/spring-batch-integration/src/test/java/org/springframework/batch/integration/chunk/RemoteChunkStepIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2025 the original author or authors. + * Copyright 2009-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; -import java.util.Collections; import java.util.Set; import org.junit.jupiter.api.Test; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/ErrorLogTasklet.java b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/ErrorLogTasklet.java index 7cddb1aeeb..2e237abf54 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/ErrorLogTasklet.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/ErrorLogTasklet.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2025 the original author or authors. + * Copyright 2008-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,8 +17,6 @@ import javax.sql.DataSource; -import org.springframework.batch.core.ExitStatus; - import org.jspecify.annotations.Nullable; import org.springframework.batch.core.step.StepContribution; import org.springframework.batch.core.step.StepExecution; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemReader.java b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemReader.java index f4681cb5cc..9cbf108dd0 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemReader.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemReader.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,6 @@ import org.apache.commons.logging.LogFactory; import org.jspecify.annotations.Nullable; -import org.springframework.batch.core.ExitStatus; import org.springframework.batch.core.step.StepExecution; import org.springframework.batch.core.listener.StepExecutionListener; import org.springframework.batch.infrastructure.item.ItemReader; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemWriter.java b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemWriter.java index 4b845b599d..eb42e573e6 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemWriter.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/samples/common/StagingItemWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,9 +20,6 @@ import java.sql.SQLException; import java.util.ListIterator; -import org.springframework.batch.core.ExitStatus; - -import org.jspecify.annotations.Nullable; import org.springframework.batch.core.step.StepExecution; import org.springframework.batch.core.listener.StepExecutionListener; import org.springframework.batch.infrastructure.item.Chunk; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/samples/loom/JobConfigurationForRunningPartitionedStepsWithVirtualThreads.java b/spring-batch-samples/src/main/java/org/springframework/batch/samples/loom/JobConfigurationForRunningPartitionedStepsWithVirtualThreads.java index 373a966d80..0bfc892186 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/samples/loom/JobConfigurationForRunningPartitionedStepsWithVirtualThreads.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/samples/loom/JobConfigurationForRunningPartitionedStepsWithVirtualThreads.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2025 the original author or authors. + * Copyright 2023-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,6 @@ */ package org.springframework.batch.samples.loom; -import java.util.HashMap; import java.util.Map; import org.springframework.batch.core.configuration.annotation.EnableJdbcJobRepository; diff --git a/spring-batch-samples/src/main/java/org/springframework/batch/samples/remotestep/ManagerConfiguration.java b/spring-batch-samples/src/main/java/org/springframework/batch/samples/remotestep/ManagerConfiguration.java index 06d1474b67..edbe8d42de 100644 --- a/spring-batch-samples/src/main/java/org/springframework/batch/samples/remotestep/ManagerConfiguration.java +++ b/spring-batch-samples/src/main/java/org/springframework/batch/samples/remotestep/ManagerConfiguration.java @@ -29,7 +29,6 @@ import org.springframework.batch.core.job.builder.JobBuilder; import org.springframework.batch.core.repository.JobRepository; import org.springframework.batch.integration.remote.RemoteStep; -import org.springframework.beans.factory.BeanFactory; import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/samples/partition/jdbc/PartitionJdbcJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/samples/partition/jdbc/PartitionJdbcJobFunctionalTests.java index 34235407eb..a1012dee65 100644 --- a/spring-batch-samples/src/test/java/org/springframework/batch/samples/partition/jdbc/PartitionJdbcJobFunctionalTests.java +++ b/spring-batch-samples/src/test/java/org/springframework/batch/samples/partition/jdbc/PartitionJdbcJobFunctionalTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2025 the original author or authors. + * Copyright 2006-2026 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,7 +33,6 @@ import org.springframework.batch.samples.domain.trade.CustomerCredit; import org.springframework.batch.samples.domain.trade.internal.CustomerCreditIncreaseProcessor; import org.springframework.batch.samples.partitioning.local.PartitionJdbcJobConfiguration; -import org.springframework.batch.test.JobOperatorTestUtils; import org.springframework.beans.BeansException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier;