Skip to content

Commit a7e0689

Browse files
committed
Merge branch '3.5.x'
Closes gh-46586
2 parents e25056a + a11a50c commit a7e0689

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

module/spring-boot-test-autoconfigure/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
plugins {
1818
id "java-library"
19+
id "org.springframework.boot.configuration-properties"
1920
id "org.springframework.boot.deployed"
2021
id "org.springframework.boot.docker-test"
2122
id "org.springframework.boot.optional-dependencies"
@@ -184,16 +185,6 @@ dependencies {
184185
testRuntimeOnly("org.flywaydb:flyway-database-hsqldb")
185186
}
186187

187-
configurations {
188-
configurationPropertiesMetadata
189-
}
190-
191-
artifacts {
192-
configurationPropertiesMetadata new File(sourceSets.main.output.resourcesDir, "META-INF/spring-configuration-metadata.json"), { artifact ->
193-
artifact.builtBy sourceSets.main.processResourcesTaskName
194-
}
195-
}
196-
197188
test {
198189
include "**/*Tests.class"
199190
}

module/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/web/servlet/SpringBootMockMvcBuilderCustomizer.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,19 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
5959

6060
private final WebApplicationContext context;
6161

62+
/**
63+
* Whether to add servlet filters.
64+
*/
6265
private boolean addFilters = true;
6366

67+
/**
68+
* MVC Print option.
69+
*/
6470
private MockMvcPrint print = MockMvcPrint.DEFAULT;
6571

72+
/**
73+
* Whether to only print failed exchanges.
74+
*/
6675
private boolean printOnlyOnFailure = true;
6776

6877
/**

module/spring-boot-test-autoconfigure/src/main/resources/META-INF/spring-configuration-metadata.json renamed to module/spring-boot-test-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@
66
"description": "Type of existing DataSource to replace.",
77
"defaultValue": "any"
88
},
9-
{
10-
"name": "spring.test.mockmvc.add-filters",
11-
"type": "java.lang.Boolean",
12-
"description": "Whether to add servlet filters.",
13-
"defaultValue": true
14-
},
15-
{
16-
"name": "spring.test.mockmvc.print",
17-
"type": "org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrint",
18-
"description": "MVC Print option.",
19-
"defaultValue": "default"
20-
},
21-
{
22-
"name": "spring.test.mockmvc.print-only-on-failure",
23-
"type": "java.lang.Boolean",
24-
"description": "Whether to only print failed exchanges.",
25-
"defaultValue": true
26-
},
279
{
2810
"name": "spring.test.observability.auto-configure",
2911
"type": "java.lang.Boolean",

0 commit comments

Comments
 (0)