Merge branch '2.4.x'
Closes gh-25271
This commit is contained in:
@@ -27,7 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
*
|
||||
* @author Chris Bono
|
||||
*/
|
||||
class CassandraPropertiesTest {
|
||||
class CassandraPropertiesTests {
|
||||
|
||||
@Test
|
||||
void defaultValuesAreConsistent() {
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,7 +47,7 @@ public class LifecycleAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void lifecycleProcessorIsConfiguredWithCustomDefaultTimeout() {
|
||||
void lifecycleProcessorIsConfiguredWithCustomTimeout() {
|
||||
this.contextRunner.withPropertyValues("spring.lifecycle.timeout-per-shutdown-phase=15s").run((context) -> {
|
||||
assertThat(context).hasBean(AbstractApplicationContext.LIFECYCLE_PROCESSOR_BEAN_NAME);
|
||||
Object processor = context.getBean(AbstractApplicationContext.LIFECYCLE_PROCESSOR_BEAN_NAME);
|
||||
@@ -56,7 +56,7 @@ public class LifecycleAutoConfigurationTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
void lifecycleProcessorIsConfiguredWithCustomDefaultTimeoutInAChildContext() {
|
||||
void lifecycleProcessorIsConfiguredWithCustomTimeoutInAChildContext() {
|
||||
new ApplicationContextRunner().run((parent) -> {
|
||||
this.contextRunner.withParent(parent).withPropertyValues("spring.lifecycle.timeout-per-shutdown-phase=15s")
|
||||
.run((child) -> {
|
||||
|
||||
Reference in New Issue
Block a user