use of org.springframework.boot.configurationsample.generic.ComplexGenericProperties in project spring-boot by spring-projects.
the class GenericsMetadataGenerationTests method complexGenericProperties.
@Test
void complexGenericProperties() {
ConfigurationMetadata metadata = compile(ComplexGenericProperties.class);
assertThat(metadata).has(Metadata.withGroup("generic").fromSource(ComplexGenericProperties.class));
assertThat(metadata).has(Metadata.withGroup("generic.test").ofType(UpperBoundGenericPojo.class).fromSource(ComplexGenericProperties.class));
assertThat(metadata).has(Metadata.withProperty("generic.test.mappings", "java.util.Map<java.lang.Enum<T>,java.lang.String>").fromSource(UpperBoundGenericPojo.class));
assertThat(metadata.getItems()).hasSize(3);
}
Aggregations