@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)); }
@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)); }