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