commit
e481eccd57
|
@ -513,6 +513,7 @@ public class JavaBeanBinderTests {
|
||||||
assertThat(bean.getBooleans().get("b").getValue()).isEqualTo(true);
|
assertThat(bean.getBooleans().get("b").getValue()).isEqualTo(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void bindToClassWithOverloadedSetterShouldUseSetterThatMatchesField() {
|
public void bindToClassWithOverloadedSetterShouldUseSetterThatMatchesField() {
|
||||||
// gh-16206
|
// gh-16206
|
||||||
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
|
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
|
||||||
|
@ -524,9 +525,8 @@ public class JavaBeanBinderTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void beanProperiesPreferMatchingType() {
|
public void beanPropertiesPreferMatchingType() {
|
||||||
// gh-16206
|
// gh-16206
|
||||||
|
|
||||||
ResolvableType type = ResolvableType.forClass(PropertyWithOverloadedSetter.class);
|
ResolvableType type = ResolvableType.forClass(PropertyWithOverloadedSetter.class);
|
||||||
Bean<PropertyWithOverloadedSetter> bean = new Bean<PropertyWithOverloadedSetter>(
|
Bean<PropertyWithOverloadedSetter> bean = new Bean<PropertyWithOverloadedSetter>(
|
||||||
type, type.resolve()) {
|
type, type.resolve()) {
|
||||||
|
|
Loading…
Reference in New Issue