Upgrade to Spring Framework 6.1.0-M1
Closes gh-35977 Closes gh-35980
This commit is contained in:
@@ -1021,9 +1021,6 @@ public class TestRestTemplate {
|
||||
if (settings.connectTimeout() != null) {
|
||||
setConnectTimeout((int) settings.connectTimeout().toMillis());
|
||||
}
|
||||
if (settings.bufferRequestBody() != null) {
|
||||
setBufferRequestBody(settings.bufferRequestBody());
|
||||
}
|
||||
}
|
||||
|
||||
private HttpClient createHttpClient(Duration readTimeout, boolean ssl) {
|
||||
|
||||
@@ -255,7 +255,7 @@ class SpringBootContextLoaderTests {
|
||||
private Map<String, Object> getMergedContextConfigurationProperties(Class<?> testClass) {
|
||||
TestContext context = new ExposedTestContextManager(testClass).getExposedTestContext();
|
||||
MergedContextConfiguration config = (MergedContextConfiguration) ReflectionTestUtils.getField(context,
|
||||
"mergedContextConfiguration");
|
||||
"mergedConfig");
|
||||
return TestPropertySourceUtils.convertInlinedPropertiesToMap(config.getPropertySourceProperties());
|
||||
}
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ class SpringBootTestContextBootstrapperTests {
|
||||
}
|
||||
|
||||
private MergedContextConfiguration getMergedContextConfiguration(TestContext context) {
|
||||
return (MergedContextConfiguration) ReflectionTestUtils.getField(context, "mergedContextConfiguration");
|
||||
return (MergedContextConfiguration) ReflectionTestUtils.getField(context, "mergedConfig");
|
||||
}
|
||||
|
||||
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
|
||||
|
||||
Reference in New Issue
Block a user