Merge pull request #17002 from Johnny Lim

* gh-17002:
  Add a missing @Test in JavaBeanBinderTests

Closes gh-17002
This commit is contained in:
Andy Wilkinson 2019-05-29 14:18:25 +01:00
commit 0b5bb6eb9d
1 changed files with 2 additions and 2 deletions

View File

@ -511,6 +511,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();
@ -522,9 +523,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()) {