|
|
@ -626,8 +626,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
|
|
|
|
private Metadata.MetadataItemCondition enabledFlag(String endpointId,
|
|
|
|
private Metadata.MetadataItemCondition enabledFlag(String endpointId,
|
|
|
|
Boolean defaultValue) {
|
|
|
|
Boolean defaultValue) {
|
|
|
|
return Metadata.withEnabledFlag("management.endpoint." + endpointId + ".enabled")
|
|
|
|
return Metadata.withEnabledFlag("management.endpoint." + endpointId + ".enabled")
|
|
|
|
.withDefaultValue(defaultValue)
|
|
|
|
.withDefaultValue(defaultValue).withDescription(
|
|
|
|
.withDescription(String.format("Enable the %s endpoint.", endpointId));
|
|
|
|
String.format("Whether to enable the %s endpoint.", endpointId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Metadata.MetadataItemCondition cacheTtl(String endpointId) {
|
|
|
|
private Metadata.MetadataItemCondition cacheTtl(String endpointId) {
|
|
|
|