diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AbstractEndpointDocumentationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AbstractEndpointDocumentationTests.java index 46c5e7eca2..97493d07f2 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AbstractEndpointDocumentationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/AbstractEndpointDocumentationTests.java @@ -61,9 +61,9 @@ public class AbstractEndpointDocumentationTests { protected String describeEnumValues(Class> enumType) { return StringUtils - .collectionToCommaDelimitedString(Stream.of(enumType.getEnumConstants()) + .collectionToDelimitedString(Stream.of(enumType.getEnumConstants()) .map((constant) -> "`" + constant.name() + "`") - .collect(Collectors.toList())); + .collect(Collectors.toList()), ", "); } protected OperationPreprocessor limit(String... keys) { diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/resources/org/springframework/restdocs/templates/asciidoctor/response-fields.snippet b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/resources/org/springframework/restdocs/templates/asciidoctor/response-fields.snippet new file mode 100644 index 0000000000..f1da0a00e1 --- /dev/null +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/resources/org/springframework/restdocs/templates/asciidoctor/response-fields.snippet @@ -0,0 +1,10 @@ +|=== +|Path|Type|Description + +{{#fields}} +|{{#tableCellContent}}`+{{path}}+`{{/tableCellContent}} +|{{#tableCellContent}}`{{type}}`{{/tableCellContent}} +|{{#tableCellContent}}{{description}}{{/tableCellContent}} + +{{/fields}} +|===