use of org.springframework.boot.configurationsample.endpoint.SpecificEndpoint in project spring-boot by spring-projects.
the class EndpointMetadataGenerationTests method specificEndpoint.
@Test
void specificEndpoint() {
ConfigurationMetadata metadata = compile(SpecificEndpoint.class);
assertThat(metadata).has(Metadata.withGroup("management.endpoint.specific").fromSource(SpecificEndpoint.class));
assertThat(metadata).has(enabledFlag("specific", true));
assertThat(metadata).has(cacheTtl("specific"));
assertThat(metadata.getItems()).hasSize(3);
}
Aggregations