mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '3.5.x'
Closes gh-46586
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
plugins {
|
||||
id "java-library"
|
||||
id "org.springframework.boot.configuration-properties"
|
||||
id "org.springframework.boot.deployed"
|
||||
id "org.springframework.boot.docker-test"
|
||||
id "org.springframework.boot.optional-dependencies"
|
||||
@@ -184,16 +185,6 @@ dependencies {
|
||||
testRuntimeOnly("org.flywaydb:flyway-database-hsqldb")
|
||||
}
|
||||
|
||||
configurations {
|
||||
configurationPropertiesMetadata
|
||||
}
|
||||
|
||||
artifacts {
|
||||
configurationPropertiesMetadata new File(sourceSets.main.output.resourcesDir, "META-INF/spring-configuration-metadata.json"), { artifact ->
|
||||
artifact.builtBy sourceSets.main.processResourcesTaskName
|
||||
}
|
||||
}
|
||||
|
||||
test {
|
||||
include "**/*Tests.class"
|
||||
}
|
||||
|
||||
+9
@@ -59,10 +59,19 @@ public class SpringBootMockMvcBuilderCustomizer implements MockMvcBuilderCustomi
|
||||
|
||||
private final WebApplicationContext context;
|
||||
|
||||
/**
|
||||
* Whether to add servlet filters.
|
||||
*/
|
||||
private boolean addFilters = true;
|
||||
|
||||
/**
|
||||
* MVC Print option.
|
||||
*/
|
||||
private MockMvcPrint print = MockMvcPrint.DEFAULT;
|
||||
|
||||
/**
|
||||
* Whether to only print failed exchanges.
|
||||
*/
|
||||
private boolean printOnlyOnFailure = true;
|
||||
|
||||
/**
|
||||
|
||||
-18
@@ -6,24 +6,6 @@
|
||||
"description": "Type of existing DataSource to replace.",
|
||||
"defaultValue": "any"
|
||||
},
|
||||
{
|
||||
"name": "spring.test.mockmvc.add-filters",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether to add servlet filters.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "spring.test.mockmvc.print",
|
||||
"type": "org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrint",
|
||||
"description": "MVC Print option.",
|
||||
"defaultValue": "default"
|
||||
},
|
||||
{
|
||||
"name": "spring.test.mockmvc.print-only-on-failure",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether to only print failed exchanges.",
|
||||
"defaultValue": true
|
||||
},
|
||||
{
|
||||
"name": "spring.test.observability.auto-configure",
|
||||
"type": "java.lang.Boolean",
|
||||
Reference in New Issue
Block a user