@ -86,6 +86,19 @@ class SingleConfigurationTableEntryTests {
+ "|+++This is a description.+++" + NEWLINE ) ;
+ "|+++This is a description.+++" + NEWLINE ) ;
}
}
@Test
void descriptionWithPipe ( ) {
ConfigurationMetadataProperty property = new ConfigurationMetadataProperty ( ) ;
property . setId ( "spring.test.prop" ) ;
property . setDescription ( "This is a description with a | pipe." ) ;
property . setType ( "java.lang.String" ) ;
SingleConfigurationTableEntry entry = new SingleConfigurationTableEntry ( property ) ;
AsciidocBuilder builder = new AsciidocBuilder ( ) ;
entry . write ( builder ) ;
assertThat ( builder . toString ( ) ) . isEqualTo ( "|`+spring.test.prop+`" + NEWLINE + "|" + NEWLINE
+ "|+++This is a description with a \\| pipe.+++" + NEWLINE ) ;
}
@Test
@Test
void mapProperty ( ) {
void mapProperty ( ) {
ConfigurationMetadataProperty property = new ConfigurationMetadataProperty ( ) ;
ConfigurationMetadataProperty property = new ConfigurationMetadataProperty ( ) ;