File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
spring-batch-test/src/main/java/org/springframework/batch/test/context Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ allprojects {
85
85
jettisonVersion = ' 1.2' // ? => upgrade to 1.4 and the build fails (deprecated anyway via xstream)
86
86
jmsVersion = ' 2.0.1'
87
87
junitVersion = ' 4.13'
88
+ junitJupiterVersion = ' 5.6.0'
88
89
log4jVersion = ' 2.13.0'
89
90
mysqlVersion = ' 8.0.18'
90
91
mockitoVersion = ' 3.1.0'
@@ -517,6 +518,8 @@ project('spring-batch-test') {
517
518
518
519
optional " org.aspectj:aspectjrt:$aspectjVersion "
519
520
optional " javax.batch:javax.batch-api:$javaxBatchApiVersion "
521
+ optional " org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion "
522
+
520
523
}
521
524
}
522
525
Original file line number Diff line number Diff line change 22
22
import java .lang .annotation .RetentionPolicy ;
23
23
import java .lang .annotation .Target ;
24
24
25
+ import org .junit .jupiter .api .extension .ExtendWith ;
26
+
25
27
import org .springframework .batch .test .JobLauncherTestUtils ;
26
28
import org .springframework .batch .test .JobRepositoryTestUtils ;
27
29
import org .springframework .batch .test .JobScopeTestExecutionListener ;
28
30
import org .springframework .batch .test .StepScopeTestExecutionListener ;
29
31
import org .springframework .test .context .TestExecutionListeners ;
32
+ import org .springframework .test .context .junit .jupiter .SpringExtension ;
30
33
31
34
/**
32
35
* Annotation that can be specified on a test class that runs Spring Batch based tests.
94
97
listeners = {StepScopeTestExecutionListener .class , JobScopeTestExecutionListener .class },
95
98
mergeMode = TestExecutionListeners .MergeMode .MERGE_WITH_DEFAULTS
96
99
)
100
+ @ ExtendWith (SpringExtension .class )
97
101
public @interface SpringBatchTest {
98
102
}
You can’t perform that action at this time.
0 commit comments