Java 类org.springframework.boot.configurationsample.simple.HierarchicalProperties 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void hierarchicalProperties() throws Exception {
    ConfigurationMetadata metadata = compile(HierarchicalProperties.class);
    assertThat(metadata).has(Metadata.withGroup("hierarchical")
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata).has(Metadata.withProperty("hierarchical.first", String.class)
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata)
            .has(Metadata.withProperty("hierarchical.second", String.class)
                    .fromSource(HierarchicalProperties.class));
    assertThat(metadata).has(Metadata.withProperty("hierarchical.third", String.class)
            .fromSource(HierarchicalProperties.class));
}
项目:spring-boot-concourse    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void hierarchicalProperties() throws Exception {
    ConfigurationMetadata metadata = compile(HierarchicalProperties.class);
    assertThat(metadata).has(Metadata.withGroup("hierarchical")
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata).has(Metadata.withProperty("hierarchical.first", String.class)
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata)
            .has(Metadata.withProperty("hierarchical.second", String.class)
                    .fromSource(HierarchicalProperties.class));
    assertThat(metadata).has(Metadata.withProperty("hierarchical.third", String.class)
            .fromSource(HierarchicalProperties.class));
}
项目:contestparser    文件:ConfigurationMetadataAnnotationProcessorTests.java   
@Test
public void hierarchicalProperties() throws Exception {
    ConfigurationMetadata metadata = compile(HierarchicalProperties.class);
    assertThat(metadata,
            containsGroup("hierarchical").fromSource(HierarchicalProperties.class));
    assertThat(metadata, containsProperty("hierarchical.first", String.class)
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata, containsProperty("hierarchical.second", String.class)
            .fromSource(HierarchicalProperties.class));
    assertThat(metadata, containsProperty("hierarchical.third", String.class)
            .fromSource(HierarchicalProperties.class));
}