15
15
*/
16
16
package org .springframework .batch .core .job .builder ;
17
17
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 ;
24
21
import org .junit .jupiter .api .BeforeEach ;
25
22
import org .junit .jupiter .api .Test ;
26
23
import org .springframework .batch .core .*;
40
37
import org .springframework .batch .core .step .StepSupport ;
41
38
import org .springframework .batch .core .step .builder .StepBuilder ;
42
39
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 ;
43
43
import org .springframework .beans .factory .annotation .Value ;
44
44
import org .springframework .context .ApplicationContext ;
45
45
import org .springframework .context .annotation .AnnotationConfigApplicationContext ;
54
54
55
55
import javax .sql .DataSource ;
56
56
import java .util .Arrays ;
57
+ import java .util .concurrent .CountDownLatch ;
58
+ import java .util .concurrent .TimeUnit ;
57
59
58
- import static org .junit .Assert .assertTrue ;
59
60
import static org .junit .jupiter .api .Assertions .assertEquals ;
60
61
61
62
/**
62
63
* @author Dave Syer
63
64
* @author Mahmoud Ben Hassine
65
+ * @author Fabrice Bibonne
64
66
*/
65
67
class FlowJobBuilderTests {
66
68
@@ -374,7 +376,7 @@ void testStepNamesMustBeUniqueWithinFlowDefinition() throws JobInstanceAlreadyCo
374
376
new JobParametersBuilder ().addLong ("random" , 2L )
375
377
.addString ("stepTwo.name" , JobConfigurationForStepNameUnique .SHARED_NAME )
376
378
.toJobParameters ());
377
- assertTrue (jobExecution .getAllFailureExceptions ()
379
+ Assertions . assertTrue (jobExecution .getAllFailureExceptions ()
378
380
.stream ()
379
381
.map (Object ::getClass )
380
382
.anyMatch (AlreadyUsedStepNameException .class ::equals ));
@@ -383,7 +385,7 @@ void testStepNamesMustBeUniqueWithinFlowDefinition() throws JobInstanceAlreadyCo
383
385
new JobParametersBuilder ().addLong ("random" , 1L )
384
386
.addString ("stepTwo.name" , JobConfigurationForStepNameUnique .SHARED_NAME )
385
387
.toJobParameters ());
386
- assertTrue (jobExecution .getAllFailureExceptions ()
388
+ Assertions . assertTrue (jobExecution .getAllFailureExceptions ()
387
389
.stream ()
388
390
.map (Object ::getClass )
389
391
.anyMatch (AlreadyUsedStepNameException .class ::equals ));
0 commit comments