1
- description = ' Spring TestContext Framework'
1
+ description = " Spring TestContext Framework"
2
2
3
3
dependencyManagement {
4
4
imports {
@@ -9,121 +9,121 @@ dependencyManagement {
9
9
}
10
10
11
11
dependencies {
12
- compile(project(' :spring-core' ))
13
- optional(project(' :spring-aop' ))
14
- optional(project(' :spring-beans' ))
15
- optional(project(' :spring-context' ))
16
- optional(project(' :spring-jdbc' ))
17
- optional(project(' :spring-orm' ))
18
- optional(project(' :spring-tx' ))
19
- optional(project(' :spring-web' ))
20
- optional(project(' :spring-webflux' ))
21
- optional(project(' :spring-webmvc' ))
22
- optional(project(' :spring-websocket' ))
23
- optional(' javax.activation:activation:1.1.1' )
24
- optional(' javax.el:javax.el-api:3.0.1-b04' )
25
- optional(' javax.inject:javax.inject:1' )
26
- optional(' javax.servlet:javax.servlet-api:4.0.1' )
27
- optional(' javax.servlet.jsp:javax.servlet.jsp-api:2.3.2-b02' )
28
- optional(' javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1' )
29
- optional(' javax.xml.bind:jaxb-api:2.3.0' )
30
- optional(' javax.websocket:javax.websocket-api:1.1' )
31
- optional(' junit:junit:4.12' )
32
- optional(' org.junit.jupiter:junit-jupiter-api' )
33
- optional(' org.testng:testng:6.14.3' )
12
+ compile(project(" :spring-core" ))
13
+ optional(project(" :spring-aop" ))
14
+ optional(project(" :spring-beans" ))
15
+ optional(project(" :spring-context" ))
16
+ optional(project(" :spring-jdbc" ))
17
+ optional(project(" :spring-orm" ))
18
+ optional(project(" :spring-tx" ))
19
+ optional(project(" :spring-web" ))
20
+ optional(project(" :spring-webflux" ))
21
+ optional(project(" :spring-webmvc" ))
22
+ optional(project(" :spring-websocket" ))
23
+ optional(" javax.activation:activation:1.1.1" )
24
+ optional(" javax.el:javax.el-api:3.0.1-b04" )
25
+ optional(" javax.inject:javax.inject:1" )
26
+ optional(" javax.servlet:javax.servlet-api:4.0.1" )
27
+ optional(" javax.servlet.jsp:javax.servlet.jsp-api:2.3.2-b02" )
28
+ optional(" javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1" )
29
+ optional(" javax.xml.bind:jaxb-api:2.3.0" )
30
+ optional(" javax.websocket:javax.websocket-api:1.1" )
31
+ optional(" junit:junit:4.12" )
32
+ optional(" org.junit.jupiter:junit-jupiter-api" )
33
+ optional(" org.testng:testng:6.14.3" )
34
34
optional(" org.aspectj:aspectjweaver:${ aspectjVersion} " )
35
35
optional(" org.codehaus.groovy:groovy-all:${ groovyVersion} " )
36
- optional(' org.hamcrest:hamcrest-core:1.3' )
37
- optional(' org.apache.taglibs:taglibs-standard-jstlel:1.2.5' ) {
38
- exclude group : ' org.apache.taglibs' , module : ' taglibs-standard-spec'
36
+ optional(" org.hamcrest:hamcrest-core:1.3" )
37
+ optional(" org.apache.taglibs:taglibs-standard-jstlel:1.2.5" ) {
38
+ exclude group : " org.apache.taglibs" , module : " taglibs-standard-spec"
39
39
}
40
- optional(' net.sourceforge.htmlunit:htmlunit:2.32' ) {
41
- exclude group : ' commons-logging' , module : ' commons-logging'
40
+ optional(" net.sourceforge.htmlunit:htmlunit:2.32" ) {
41
+ exclude group : " commons-logging" , module : " commons-logging"
42
42
}
43
- optional(' org.seleniumhq.selenium:htmlunit-driver:2.32.0 ' ) {
44
- exclude group : ' commons-logging' , module : ' commons-logging'
43
+ optional(" org.seleniumhq.selenium:htmlunit-driver:2.32.1 " ) {
44
+ exclude group : " commons-logging" , module : " commons-logging"
45
45
}
46
- optional(' org.seleniumhq.selenium:selenium-java:3.14.0' ) {
47
- exclude group : ' commons-logging' , module : ' commons-logging'
48
- exclude group : ' io.netty' , module : ' netty'
46
+ optional(" org.seleniumhq.selenium:selenium-java:3.14.0" ) {
47
+ exclude group : " commons-logging" , module : " commons-logging"
48
+ exclude group : " io.netty" , module : " netty"
49
49
}
50
- optional(' org.xmlunit:xmlunit-matchers:2.6.0' )
51
- optional(' org.skyscreamer:jsonassert:1.5.0' )
52
- optional(' com.jayway.jsonpath:json-path:2.4.0' )
50
+ optional(" org.xmlunit:xmlunit-matchers:2.6.0" )
51
+ optional(" org.skyscreamer:jsonassert:1.5.0" )
52
+ optional(" com.jayway.jsonpath:json-path:2.4.0" )
53
53
optional(" org.jetbrains.kotlin:kotlin-reflect:${ kotlinVersion} " )
54
54
optional(" org.jetbrains.kotlin:kotlin-stdlib:${ kotlinVersion} " )
55
- optional(' io.projectreactor:reactor-test' )
56
- testCompile(project(' :spring-context-support' ))
57
- testCompile(project(' :spring-oxm' ))
58
- testCompile(' javax.annotation:javax.annotation-api:1.3.2' )
59
- testCompile(' javax.cache:cache-api:1.1.0' )
60
- testCompile(' javax.ejb:javax.ejb-api:3.2' )
61
- testCompile(' javax.interceptor:javax.interceptor-api:1.2.2' )
62
- testCompile(' javax.mail:javax.mail-api:1.6.1' )
63
- testCompile(' org.hibernate:hibernate-core:5.2.17.Final' )
64
- testCompile(' org.hibernate:hibernate-validator:6.0.12.Final' )
55
+ optional(" io.projectreactor:reactor-test" )
56
+ testCompile(project(" :spring-context-support" ))
57
+ testCompile(project(" :spring-oxm" ))
58
+ testCompile(" javax.annotation:javax.annotation-api:1.3.2" )
59
+ testCompile(" javax.cache:cache-api:1.1.0" )
60
+ testCompile(" javax.ejb:javax.ejb-api:3.2" )
61
+ testCompile(" javax.interceptor:javax.interceptor-api:1.2.2" )
62
+ testCompile(" javax.mail:javax.mail-api:1.6.1" )
63
+ testCompile(" org.hibernate:hibernate-core:5.2.17.Final" )
64
+ testCompile(" org.hibernate:hibernate-validator:6.0.12.Final" )
65
65
// Enable use of the JUnit Platform Runner
66
- testCompile(' org.junit.platform:junit-platform-runner' )
67
- testCompile(' org.junit.jupiter:junit-jupiter-params' )
66
+ testCompile(" org.junit.platform:junit-platform-runner" )
67
+ testCompile(" org.junit.jupiter:junit-jupiter-params" )
68
68
testCompile(" com.fasterxml.jackson.core:jackson-databind:${ jackson2Version} " )
69
- testCompile(' com.thoughtworks.xstream:xstream:1.4.10' )
70
- testCompile(' com.rometools:rome:1.11.0' )
69
+ testCompile(" com.thoughtworks.xstream:xstream:1.4.10" )
70
+ testCompile(" com.rometools:rome:1.11.0" )
71
71
testCompile(" org.apache.tiles:tiles-api:${ tiles3Version} " )
72
72
testCompile(" org.apache.tiles:tiles-core:${ tiles3Version} " , withoutJclOverSlf4J)
73
73
testCompile(" org.apache.tiles:tiles-servlet:${ tiles3Version} " , withoutJclOverSlf4J)
74
74
testCompile(" org.hsqldb:hsqldb:${ hsqldbVersion} " )
75
- testCompile(' org.apache.httpcomponents:httpclient:4.5.6' ) {
76
- exclude group : ' commons-logging' , module : ' commons-logging'
75
+ testCompile(" org.apache.httpcomponents:httpclient:4.5.6" ) {
76
+ exclude group : " commons-logging" , module : " commons-logging"
77
77
}
78
- testCompile(' io.projectreactor.netty:reactor-netty' )
79
- testCompile(' de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1' )
78
+ testCompile(" io.projectreactor.netty:reactor-netty" )
79
+ testCompile(" de.bechte.junit:junit-hierarchicalcontextrunner:4.12.1" )
80
80
// Pull in the latest JUnit 5 Launcher API and the Vintage engine as well
81
81
// so that we can run JUnit 4 tests in IntelliJ IDEA.
82
- testRuntime(' org.junit.jupiter:junit-jupiter-engine' )
83
- testRuntime(' org.junit.platform:junit-platform-launcher' )
84
- testRuntime(' org.junit.vintage:junit-vintage-engine' )
85
- testRuntime(' org.glassfish:javax.el:3.0.1-b08' )
86
- testRuntime(' com.sun.xml.bind:jaxb-core:2.3.0.1' )
87
- testRuntime(' com.sun.xml.bind:jaxb-impl:2.3.0.1' )
82
+ testRuntime(" org.junit.jupiter:junit-jupiter-engine" )
83
+ testRuntime(" org.junit.platform:junit-platform-launcher" )
84
+ testRuntime(" org.junit.vintage:junit-vintage-engine" )
85
+ testRuntime(" org.glassfish:javax.el:3.0.1-b08" )
86
+ testRuntime(" com.sun.xml.bind:jaxb-core:2.3.0.1" )
87
+ testRuntime(" com.sun.xml.bind:jaxb-impl:2.3.0.1" )
88
88
}
89
89
90
90
task testNG (type : Test ) {
91
- description = ' Runs TestNG tests.'
91
+ description = " Runs TestNG tests."
92
92
useTestNG()
93
93
scanForTestClasses = false
94
- include([' **/testng/**/*Tests.class' , ' **/testng/**/*Test.class' ])
94
+ include([" **/testng/**/*Tests.class" , " **/testng/**/*Test.class" ])
95
95
// Show STD_OUT & STD_ERR of the test JVM(s) on the console:
96
96
// testLogging.showStandardStreams = true
97
97
// forkEvery 1
98
98
reports. junitXml. destination = file(" $buildDir /test-results" )
99
99
}
100
100
101
101
task testJUnitJupiter (type : Test ) {
102
- description = ' Runs JUnit Jupiter tests.'
102
+ description = " Runs JUnit Jupiter tests."
103
103
useJUnitPlatform {
104
- includeEngines ' junit-jupiter'
105
- excludeTags ' failing-test-case'
104
+ includeEngines " junit-jupiter"
105
+ excludeTags " failing-test-case"
106
106
}
107
107
filter {
108
- includeTestsMatching ' org.springframework.test.context.junit.jupiter.*'
108
+ includeTestsMatching " org.springframework.test.context.junit.jupiter.*"
109
109
}
110
110
reports. junitXml. destination = file(" $buildDir /test-results" )
111
111
// Java Util Logging for the JUnit Platform.
112
- // systemProperty(' java.util.logging.manager', ' org.apache.logging.log4j.jul.LogManager' )
112
+ // systemProperty(" java.util.logging.manager", " org.apache.logging.log4j.jul.LogManager" )
113
113
}
114
114
115
115
test {
116
- description = ' Runs JUnit 4 tests.'
116
+ description = " Runs JUnit 4 tests."
117
117
dependsOn testJUnitJupiter, testNG
118
118
useJUnit()
119
119
scanForTestClasses = false
120
- include([' **/*Tests.class' , ' **/*Test.class' ])
121
- exclude([' **/testng/**/*.*' , ' **/jupiter/**/*.*' ])
120
+ include([" **/*Tests.class" , " **/*Test.class" ])
121
+ exclude([" **/testng/**/*.*" , " **/jupiter/**/*.*" ])
122
122
reports. junitXml. destination = file(" $buildDir /test-results" )
123
123
}
124
124
125
125
task aggregateTestReports (type : TestReport ) {
126
- description = ' Aggregates JUnit and TestNG test reports.'
126
+ description = " Aggregates JUnit and TestNG test reports."
127
127
destinationDir = test. reports. html. destination
128
128
reportOn test, testJUnitJupiter, testNG
129
129
}
0 commit comments