Add a missing @Test in JavaBeanBinderTests

See gh-17002
This commit is contained in:
Johnny Lim
2019-05-29 21:12:57 +09:00
committed by Andy Wilkinson
parent 6b199c84d7
commit 765b66c599

View File

@@ -511,6 +511,7 @@ public class JavaBeanBinderTests {
assertThat(bean.getBooleans().get("b").getValue()).isEqualTo(true);
}
@Test
public void bindToClassWithOverloadedSetterShouldUseSetterThatMatchesField() {
// gh-16206
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
@@ -522,9 +523,8 @@ public class JavaBeanBinderTests {
}
@Test
public void beanProperiesPreferMatchingType() {
public void beanPropertiesPreferMatchingType() {
// gh-16206
ResolvableType type = ResolvableType.forClass(PropertyWithOverloadedSetter.class);
Bean<PropertyWithOverloadedSetter> bean = new Bean<PropertyWithOverloadedSetter>(
type, type.resolve()) {