diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java index 1d43ff11aa..7c989dddce 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/JavaBeanBinderTests.java @@ -513,6 +513,7 @@ public class JavaBeanBinderTests { assertThat(bean.getBooleans().get("b").getValue()).isEqualTo(true); } + @Test public void bindToClassWithOverloadedSetterShouldUseSetterThatMatchesField() { // gh-16206 MockConfigurationPropertySource source = new MockConfigurationPropertySource(); @@ -524,9 +525,8 @@ public class JavaBeanBinderTests { } @Test - public void beanProperiesPreferMatchingType() { + public void beanPropertiesPreferMatchingType() { // gh-16206 - ResolvableType type = ResolvableType.forClass(PropertyWithOverloadedSetter.class); Bean bean = new Bean( type, type.resolve()) {