@ -543,6 +543,17 @@ public class ConfigurationMetadataAnnotationProcessorTests {
@@ -543,6 +543,17 @@ public class ConfigurationMetadataAnnotationProcessorTests {
. fromSource ( AdditionalMetadata . class ) ) ;
}
@Test
public void mergingOfAdditionalPropertyMatchingGroup ( ) throws Exception {
ItemMetadata property = ItemMetadata . newProperty ( null , "simple" ,
"java.lang.String" , null , null , null , null , null ) ;
writeAdditionalMetadata ( property ) ;
ConfigurationMetadata metadata = compile ( SimpleProperties . class ) ;
assertThat ( metadata ) . has ( Metadata . withGroup ( "simple" )
. fromSource ( SimpleProperties . class ) ) ;
assertThat ( metadata ) . has ( Metadata . withProperty ( "simple" , String . class ) ) ;
}
@Test
public void mergeExistingPropertyDefaultValue ( ) throws Exception {
ItemMetadata property = ItemMetadata . newProperty ( "simple" , "flag" , null , null ,