Java 类org.springframework.boot.configurationsample.method.SimpleMethodConfig 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void simpleMethodConfig() throws Exception {
    ConfigurationMetadata metadata = compile(SimpleMethodConfig.class);
    assertThat(metadata)
            .has(Metadata.withGroup("foo").fromSource(SimpleMethodConfig.class));
    assertThat(metadata).has(Metadata.withProperty("foo.name", String.class)
            .fromSource(SimpleMethodConfig.Foo.class));
    assertThat(metadata).has(Metadata.withProperty("foo.flag", Boolean.class)
            .fromSource(SimpleMethodConfig.Foo.class));
}
项目:spring-boot-concourse    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void simpleMethodConfig() throws Exception {
    ConfigurationMetadata metadata = compile(SimpleMethodConfig.class);
    assertThat(metadata)
            .has(Metadata.withGroup("foo").fromSource(SimpleMethodConfig.class));
    assertThat(metadata).has(Metadata.withProperty("foo.name", String.class)
            .fromSource(SimpleMethodConfig.Foo.class));
    assertThat(metadata).has(Metadata.withProperty("foo.flag", Boolean.class)
            .fromSource(SimpleMethodConfig.Foo.class));
}
项目:contestparser    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void simpleMethodConfig() throws Exception {
    ConfigurationMetadata metadata = compile(SimpleMethodConfig.class);
    assertThat(metadata, containsGroup("foo").fromSource(SimpleMethodConfig.class));
    assertThat(metadata, containsProperty("foo.name", String.class)
            .fromSource(SimpleMethodConfig.Foo.class));
    assertThat(metadata, containsProperty("foo.flag", Boolean.class)
            .fromSource(SimpleMethodConfig.Foo.class));
}