File tree Expand file tree Collapse file tree 5 files changed +19
-8
lines changed
main/java/org/springframework/test/context/aot
test/java/org/springframework/test/context Expand file tree Collapse file tree 5 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ configure([rootProject] + javaProjects) { project ->
7575 " https://hc.apache.org/httpcomponents-client-5.5.x/current/httpclient5/apidocs/" ,
7676 " https://projectreactor.io/docs/test/release/api/" ,
7777 " https://junit.org/junit4/javadoc/4.13.2/" ,
78- " https://docs.junit.org/6.0.0 /api/" ,
78+ " https://docs.junit.org/6.0.1 /api/" ,
7979 " https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/" ,
8080 " https://r2dbc.io/spec/1.0.0.RELEASE/api/" ,
8181 " https://jspecify.dev/docs/api/"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ dependencies {
1919 api(platform(" org.eclipse.jetty.ee11:jetty-ee11-bom:12.1.3" ))
2020 api(platform(" org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.10.2" ))
2121 api(platform(" org.jetbrains.kotlinx:kotlinx-serialization-bom:1.9.0" ))
22- api(platform(" org.junit:junit-bom:6.0.0 " ))
22+ api(platform(" org.junit:junit-bom:6.0.1 " ))
2323 api(platform(" org.mockito:mockito-bom:5.20.0" ))
2424 api(platform(" tools.jackson:jackson-bom:3.0.1" ))
2525
Original file line number Diff line number Diff line change @@ -110,9 +110,10 @@ test {
110110 // `include` test filters and system properties are configured in
111111 // org.springframework.build.TestConventions in buildSrc.
112112 filter. excludeTestsMatching(" *TestCase" )
113- // Override critical severity defined in TestConventions, since spring-test
114- // relies on the Vintage test engine for JUnit 4 support.
115- systemProperty(" junit.platform.discovery.issue.severity.critical" , " WARNING" )
113+ // Since spring-test relies on the Vintage test engine for JUnit 4 support,
114+ // we disable reporting of the "deprecated" discovery issue, because that
115+ // would otherwise fail the build.
116+ systemProperty(" junit.vintage.discovery.issue.reporting.enabled" , " false" )
116117 // Optionally configure Java Util Logging for the JUnit Platform.
117118 // systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")
118119}
Original file line number Diff line number Diff line change @@ -142,7 +142,12 @@ Stream<Class<?>> scan(String... packageNames) {
142142 if (packageNames .length > 0 ) {
143143 builder .filters (includePackageNames (packageNames ));
144144 }
145- LauncherDiscoveryRequest request = builder .build ();
145+ LauncherDiscoveryRequest request = builder
146+ // In case junit.platform.discovery.issue.severity.critical=INFO has been configured,
147+ // we do not want scanning to fail due to the deprecation of the Vintage test engine.
148+ // So, we disable reporting of the deprecation discovery issue.
149+ .configurationParameter ("junit.vintage.discovery.issue.reporting.enabled" , "false" )
150+ .build ();
146151 Launcher launcher = LauncherFactory .create ();
147152 TestPlan testPlan = launcher .discover (request );
148153
Original file line number Diff line number Diff line change 4646@ SelectPackages ("org.springframework.test.context" )
4747@ IncludeClassNamePatterns (".*Tests?$" )
4848@ ExcludeTags ("failing-test-case" )
49+ @ ConfigurationParameter (
50+ key = "junit.platform.discovery.issue.severity.critical" ,
51+ value = "INFO" )
52+ @ ConfigurationParameter (
53+ key = "junit.vintage.discovery.issue.reporting.enabled" ,
54+ value = "false" )
4955@ ConfigurationParameter (
5056 key = ClassOrderer .DEFAULT_ORDER_PROPERTY_NAME ,
51- value = "org.junit.jupiter.api.ClassOrderer$ClassName"
52- )
57+ value = "org.junit.jupiter.api.ClassOrderer$ClassName" )
5358class SpringTestContextFrameworkTestSuite {
5459}
You can’t perform that action at this time.
0 commit comments