use of org.springframework.boot.configurationsample.generic.UnresolvedGenericProperties in project spring-boot by spring-projects.
the class GenericsMetadataGenerationTests method unresolvedGenericProperties.
@Test
void unresolvedGenericProperties() {
ConfigurationMetadata metadata = compile(AbstractGenericProperties.class, UnresolvedGenericProperties.class);
assertThat(metadata).has(Metadata.withGroup("generic").fromSource(UnresolvedGenericProperties.class));
assertThat(metadata).has(Metadata.withProperty("generic.name", String.class).fromSource(UnresolvedGenericProperties.class).withDescription("Generic name.").withDefaultValue(null));
assertThat(metadata).has(Metadata.withProperty("generic.mappings", "java.util.Map<java.lang.Number,java.lang.Object>").fromSource(UnresolvedGenericProperties.class).withDescription("Generic mappings.").withDefaultValue(null));
assertThat(metadata.getItems()).hasSize(3);
}
Aggregations