Skip to content

Commit a11a50c

Browse files
committed
Merge branch '3.4.x' into 3.5.x
Closes gh-46585
2 parents afea7e6 + 4f875ad commit a11a50c

File tree

3 files changed

+10
-28
lines changed

3 files changed

+10
-28
lines changed

spring-boot-project/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"
@@ -144,16 +145,6 @@ dependencies {
144145
testImplementation("org.thymeleaf:thymeleaf")
145146
}
146147

147-
configurations {
148-
configurationPropertiesMetadata
149-
}
150-
151-
artifacts {
152-
configurationPropertiesMetadata new File(sourceSets.main.output.resourcesDir, "META-INF/spring-configuration-metadata.json"), { artifact ->
153-
artifact.builtBy sourceSets.main.processResourcesTaskName
154-
}
155-
}
156-
157148
test {
158149
include "**/*Tests.class"
159150
}

spring-boot-project/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
/**
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)