| 
									
										
										
										
											2018-08-16 21:32:44 +08:00
										 |  |  | description = "Spring TestContext Framework" | 
					
						
							| 
									
										
										
										
											2017-08-21 20:41:55 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-21 02:26:43 +08:00
										 |  |  | apply plugin: "kotlin" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-21 20:41:55 +08:00
										 |  |  | dependencies { | 
					
						
							| 
									
										
										
										
											2021-05-22 03:16:30 +08:00
										 |  |  | 	api(project(":spring-core")) | 
					
						
							| 
									
										
										
										
											2018-08-16 21:32:44 +08:00
										 |  |  | 	optional(project(":spring-aop")) | 
					
						
							|  |  |  | 	optional(project(":spring-beans")) | 
					
						
							|  |  |  | 	optional(project(":spring-context")) | 
					
						
							|  |  |  | 	optional(project(":spring-jdbc")) | 
					
						
							|  |  |  | 	optional(project(":spring-orm")) | 
					
						
							|  |  |  | 	optional(project(":spring-tx")) | 
					
						
							|  |  |  | 	optional(project(":spring-web")) | 
					
						
							|  |  |  | 	optional(project(":spring-webflux")) | 
					
						
							|  |  |  | 	optional(project(":spring-webmvc")) | 
					
						
							|  |  |  | 	optional(project(":spring-websocket")) | 
					
						
							| 
									
										
										
										
											2023-08-02 05:52:48 +08:00
										 |  |  | 	optional("com.jayway.jsonpath:json-path") | 
					
						
							|  |  |  | 	optional("io.micrometer:context-propagation") | 
					
						
							|  |  |  | 	optional("io.micrometer:micrometer-observation") | 
					
						
							|  |  |  | 	optional("io.projectreactor:reactor-test") | 
					
						
							| 
									
										
										
										
											2021-09-17 15:14:07 +08:00
										 |  |  | 	optional("jakarta.activation:jakarta.activation-api") | 
					
						
							|  |  |  | 	optional("jakarta.el:jakarta.el-api") | 
					
						
							|  |  |  | 	optional("jakarta.inject:jakarta.inject-api") | 
					
						
							|  |  |  | 	optional("jakarta.servlet:jakarta.servlet-api") | 
					
						
							|  |  |  | 	optional("jakarta.servlet.jsp:jakarta.servlet.jsp-api") | 
					
						
							|  |  |  | 	optional("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api") | 
					
						
							|  |  |  | 	optional("jakarta.websocket:jakarta.websocket-api") | 
					
						
							| 
									
										
										
										
											2022-11-06 23:08:30 +08:00
										 |  |  | 	optional("jakarta.websocket:jakarta.websocket-client-api") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	optional("jakarta.xml.bind:jakarta.xml.bind-api") | 
					
						
							| 
									
										
										
										
											2023-09-09 01:25:31 +08:00
										 |  |  | 	optional("javax.inject:javax.inject") | 
					
						
							| 
									
										
										
										
											2019-08-27 03:13:12 +08:00
										 |  |  | 	optional("junit:junit") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	optional("org.apache.groovy:groovy") | 
					
						
							|  |  |  | 	optional("org.apache.tomcat.embed:tomcat-embed-core") | 
					
						
							|  |  |  | 	optional("org.aspectj:aspectjweaver") | 
					
						
							| 
									
										
										
										
											2024-03-15 20:14:38 +08:00
										 |  |  | 	optional("org.assertj:assertj-core") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	optional("org.hamcrest:hamcrest") | 
					
						
							| 
									
										
										
										
											2024-03-11 17:51:57 +08:00
										 |  |  | 	optional("org.htmlunit:htmlunit") { | 
					
						
							|  |  |  | 		exclude group: "commons-logging", module: "commons-logging" | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	optional("org.jetbrains.kotlin:kotlin-reflect") | 
					
						
							|  |  |  | 	optional("org.jetbrains.kotlin:kotlin-stdlib") | 
					
						
							|  |  |  | 	optional("org.jetbrains.kotlinx:kotlinx-coroutines-core") | 
					
						
							|  |  |  | 	optional("org.jetbrains.kotlinx:kotlinx-coroutines-reactor") | 
					
						
							|  |  |  | 	optional("org.junit.jupiter:junit-jupiter-api") | 
					
						
							|  |  |  | 	optional("org.junit.platform:junit-platform-launcher")  // for AOT processing
 | 
					
						
							| 
									
										
										
										
											2023-12-14 18:43:37 +08:00
										 |  |  | 	optional("org.mockito:mockito-core") | 
					
						
							| 
									
										
										
										
											2024-03-11 17:51:57 +08:00
										 |  |  | 	optional("org.seleniumhq.selenium:htmlunit3-driver") { | 
					
						
							| 
									
										
										
										
											2023-06-09 17:37:08 +08:00
										 |  |  | 		exclude group: "commons-logging", module: "commons-logging" | 
					
						
							| 
									
										
										
										
											2021-09-07 17:32:28 +08:00
										 |  |  | 		exclude group: "net.bytebuddy", module: "byte-buddy" | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 	optional("org.seleniumhq.selenium:selenium-java") { | 
					
						
							|  |  |  | 		exclude group: "net.bytebuddy", module: "byte-buddy" | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2019-08-27 03:13:12 +08:00
										 |  |  | 	optional("org.skyscreamer:jsonassert") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	optional("org.testng:testng") | 
					
						
							|  |  |  | 	optional("org.xmlunit:xmlunit-matchers") | 
					
						
							| 
									
										
										
										
											2021-05-22 03:16:30 +08:00
										 |  |  | 	testImplementation(project(":spring-context-support")) | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	testImplementation(project(":spring-core-test")) | 
					
						
							| 
									
										
										
										
											2021-05-22 03:16:30 +08:00
										 |  |  | 	testImplementation(project(":spring-oxm")) | 
					
						
							|  |  |  | 	testImplementation(testFixtures(project(":spring-beans"))) | 
					
						
							|  |  |  | 	testImplementation(testFixtures(project(":spring-context"))) | 
					
						
							|  |  |  | 	testImplementation(testFixtures(project(":spring-core"))) | 
					
						
							|  |  |  | 	testImplementation(testFixtures(project(":spring-tx"))) | 
					
						
							|  |  |  | 	testImplementation(testFixtures(project(":spring-web"))) | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	testImplementation("com.fasterxml.jackson.core:jackson-databind") | 
					
						
							|  |  |  | 	testImplementation("com.rometools:rome") | 
					
						
							|  |  |  | 	testImplementation("com.thoughtworks.xstream:xstream") | 
					
						
							| 
									
										
										
										
											2023-08-02 05:52:48 +08:00
										 |  |  | 	testImplementation("de.bechte.junit:junit-hierarchicalcontextrunner") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	testImplementation("io.projectreactor.netty:reactor-netty-http") | 
					
						
							| 
									
										
										
										
											2021-09-17 15:14:07 +08:00
										 |  |  | 	testImplementation("jakarta.annotation:jakarta.annotation-api") | 
					
						
							|  |  |  | 	testImplementation("jakarta.ejb:jakarta.ejb-api") | 
					
						
							|  |  |  | 	testImplementation("jakarta.interceptor:jakarta.interceptor-api") | 
					
						
							|  |  |  | 	testImplementation("jakarta.mail:jakarta.mail-api") | 
					
						
							| 
									
										
										
										
											2023-08-02 05:52:48 +08:00
										 |  |  | 	testImplementation("jakarta.validation:jakarta.validation-api") | 
					
						
							|  |  |  | 	testImplementation("javax.cache:cache-api") | 
					
						
							| 
									
										
										
										
											2022-08-30 22:18:49 +08:00
										 |  |  | 	testImplementation("org.apache.httpcomponents:httpclient") { | 
					
						
							|  |  |  | 		exclude group: "commons-logging", module: "commons-logging" | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-02-24 00:33:41 +08:00
										 |  |  | 	testImplementation("org.awaitility:awaitility") | 
					
						
							| 
									
										
										
										
											2024-09-18 19:59:56 +08:00
										 |  |  | 	testImplementation("org.easymock:easymock") | 
					
						
							| 
									
										
										
										
											2023-08-02 06:56:50 +08:00
										 |  |  | 	testImplementation("org.hibernate:hibernate-core-jakarta") | 
					
						
							|  |  |  | 	testImplementation("org.hibernate:hibernate-validator") | 
					
						
							|  |  |  | 	testImplementation("org.hsqldb:hsqldb") | 
					
						
							|  |  |  | 	testImplementation("org.junit.platform:junit-platform-testkit") | 
					
						
							|  |  |  | 	testRuntimeOnly("com.sun.xml.bind:jaxb-core") | 
					
						
							|  |  |  | 	testRuntimeOnly("com.sun.xml.bind:jaxb-impl") | 
					
						
							|  |  |  | 	testRuntimeOnly("org.glassfish:jakarta.el") | 
					
						
							|  |  |  | 	testRuntimeOnly("org.junit.support:testng-engine") | 
					
						
							| 
									
										
										
										
											2021-05-22 03:16:30 +08:00
										 |  |  | 	testRuntimeOnly("org.junit.vintage:junit-vintage-engine") { | 
					
						
							| 
									
										
										
										
											2019-08-18 00:44:47 +08:00
										 |  |  | 		exclude group: "junit", module: "junit" | 
					
						
							|  |  |  | 	} | 
					
						
							| 
									
										
										
										
											2023-08-04 17:10:07 +08:00
										 |  |  | 	testRuntimeOnly("org.yaml:snakeyaml") | 
					
						
							| 
									
										
										
										
											2017-08-21 20:41:55 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-22 22:22:27 +08:00
										 |  |  | // Prevent xml-apis from being used so that the corresponding XML APIs from
 | 
					
						
							|  |  |  | // the JDK's `java.xml` module are used instead. This allows spring-test to
 | 
					
						
							|  |  |  | // build in Eclipse IDE which fails to compile if there is a split package
 | 
					
						
							|  |  |  | // between a JDK system module and the unnamed module (for JARs on the
 | 
					
						
							|  |  |  | // classpath).
 | 
					
						
							|  |  |  | configurations.optional { | 
					
						
							|  |  |  | 	exclude group: "xml-apis", module: "xml-apis" | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-15 20:15:59 +08:00
										 |  |  | test { | 
					
						
							|  |  |  | 	description = "Runs JUnit 4, JUnit Jupiter, and TestNG tests." | 
					
						
							| 
									
										
										
										
											2019-07-21 23:21:24 +08:00
										 |  |  | 	useJUnitPlatform { | 
					
						
							| 
									
										
										
										
											2021-09-15 20:15:59 +08:00
										 |  |  | 		includeEngines "junit-vintage", "junit-jupiter", "testng" | 
					
						
							| 
									
										
										
										
											2019-07-21 23:21:24 +08:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2025-04-25 19:38:18 +08:00
										 |  |  | 	// `include` test filters and system properties are configured in
 | 
					
						
							|  |  |  | 	// org.springframework.build.TestConventions in buildSrc.
 | 
					
						
							| 
									
										
										
										
											2021-09-15 22:08:36 +08:00
										 |  |  | 	filter.excludeTestsMatching("*TestCase") | 
					
						
							| 
									
										
										
										
											2025-04-25 19:38:18 +08:00
										 |  |  | 	// Optionally configure Java Util Logging for the JUnit Platform.
 | 
					
						
							| 
									
										
										
										
											2019-07-21 23:21:24 +08:00
										 |  |  | 	// systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
 | 
					
						
							|  |  |  | } |