Skip to content

Commit da3e37c

Browse files
committed
refactor (organize import and quality issues) after resolving conflicts #3757
1 parent f673745 commit da3e37c

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Diff for: spring-batch-core/src/test/java/org/springframework/batch/core/job/builder/FlowJobBuilderTests.java

+11-9
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@
1515
*/
1616
package org.springframework.batch.core.job.builder;
1717

18-
import java.util.Arrays;
19-
20-
import javax.sql.DataSource;
21-
22-
import static org.junit.jupiter.api.Assertions.assertEquals;
23-
18+
import org.apache.commons.logging.Log;
19+
import org.apache.commons.logging.LogFactory;
20+
import org.junit.jupiter.api.Assertions;
2421
import org.junit.jupiter.api.BeforeEach;
2522
import org.junit.jupiter.api.Test;
2623
import org.springframework.batch.core.*;
@@ -40,6 +37,9 @@
4037
import org.springframework.batch.core.step.StepSupport;
4138
import org.springframework.batch.core.step.builder.StepBuilder;
4239
import org.springframework.batch.item.support.ListItemReader;
40+
import org.springframework.batch.repeat.RepeatStatus;
41+
import org.springframework.batch.support.transaction.ResourcelessTransactionManager;
42+
import org.springframework.beans.factory.annotation.Qualifier;
4343
import org.springframework.beans.factory.annotation.Value;
4444
import org.springframework.context.ApplicationContext;
4545
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -54,13 +54,15 @@
5454

5555
import javax.sql.DataSource;
5656
import java.util.Arrays;
57+
import java.util.concurrent.CountDownLatch;
58+
import java.util.concurrent.TimeUnit;
5759

58-
import static org.junit.Assert.assertTrue;
5960
import static org.junit.jupiter.api.Assertions.assertEquals;
6061

6162
/**
6263
* @author Dave Syer
6364
* @author Mahmoud Ben Hassine
65+
* @author Fabrice Bibonne
6466
*/
6567
class FlowJobBuilderTests {
6668

@@ -374,7 +376,7 @@ void testStepNamesMustBeUniqueWithinFlowDefinition() throws JobInstanceAlreadyCo
374376
new JobParametersBuilder().addLong("random", 2L)
375377
.addString("stepTwo.name", JobConfigurationForStepNameUnique.SHARED_NAME)
376378
.toJobParameters());
377-
assertTrue(jobExecution.getAllFailureExceptions()
379+
Assertions.assertTrue(jobExecution.getAllFailureExceptions()
378380
.stream()
379381
.map(Object::getClass)
380382
.anyMatch(AlreadyUsedStepNameException.class::equals));
@@ -383,7 +385,7 @@ void testStepNamesMustBeUniqueWithinFlowDefinition() throws JobInstanceAlreadyCo
383385
new JobParametersBuilder().addLong("random", 1L)
384386
.addString("stepTwo.name", JobConfigurationForStepNameUnique.SHARED_NAME)
385387
.toJobParameters());
386-
assertTrue(jobExecution.getAllFailureExceptions()
388+
Assertions.assertTrue(jobExecution.getAllFailureExceptions()
387389
.stream()
388390
.map(Object::getClass)
389391
.anyMatch(AlreadyUsedStepNameException.class::equals));

0 commit comments

Comments
 (0)