diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointDocumentationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointDocumentationTests.java index f81bba2986..87bbd40f4c 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointDocumentationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/info/InfoEndpointDocumentationTests.java @@ -110,7 +110,12 @@ class InfoEndpointDocumentationTests extends MockMvcEndpointDocumentationTests { fieldWithPath("memory.nonHeap.used").description("The number of bytes currently being used."), fieldWithPath("memory.nonHeap.committed").description("The number of bytes committed for JVM use."), fieldWithPath("memory.nonHeap.max") - .description("The maximum number of bytes that can be used by the JVM (or -1).")); + .description("The maximum number of bytes that can be used by the JVM (or -1)."), + fieldWithPath("memory.garbageCollectors").description("Details for garbage collectors."), + fieldWithPath("memory.garbageCollectors[].name").description("Name of of the garbage collector."), + fieldWithPath("memory.garbageCollectors[].collectionCount") + .description("Total number of collections that have occurred.")); + } private ResponseFieldsSnippet javaInfo() {