PropertySourcesPropertyValuesTests.java 文件源码

java
阅读 26 收藏 0 点赞 0 评论 0

项目:spring-boot-concourse 作者:
@Test
public void testPlaceholdersErrorInNonEnumerable() {
    TestBean target = new TestBean();
    DataBinder binder = new DataBinder(target);
    this.propertySources.addFirst(new PropertySource<Object>("application", "STUFF") {

        @Override
        public Object getProperty(String name) {
            return new Object();
        }

    });
    binder.bind(new PropertySourcesPropertyValues(this.propertySources,
            (Collection<String>) null, Collections.singleton("name")));
    assertThat(target.getName()).isNull();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号