From 7176c54f5e4aeac5c07fcc040f17ec3af34297f0 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 24 Jul 2018 09:03:03 +0200 Subject: [PATCH] Polish "Add metric description and base unit to metrics endpoint" Closes gh-13813 --- .../web/documentation/MetricsEndpointDocumentationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MetricsEndpointDocumentationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MetricsEndpointDocumentationTests.java index 5e57f74e6d..08baee11f6 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MetricsEndpointDocumentationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/MetricsEndpointDocumentationTests.java @@ -54,7 +54,8 @@ public class MetricsEndpointDocumentationTests extends MockMvcEndpointDocumentat .andExpect(status().isOk()) .andDo(document("metrics/metric", responseFields( fieldWithPath("name").description("Name of the metric"), - fieldWithPath("description").description("Description of the metric"), + fieldWithPath("description") + .description("Description of the metric"), fieldWithPath("baseUnit").description("Base unit of the metric"), fieldWithPath("measurements") .description("Measurements of the metric"),