Polish "Consistent condition for ObservedAspectConfiguration"

See gh-45601
This commit is contained in:
Stéphane Nicoll
2025-05-20 14:45:30 +02:00
parent b22d3caaad
commit 25796e031c

View File

@@ -185,7 +185,8 @@ class ObservationAutoConfigurationTests {
}
@Test
void allowsObservedAspectToBeEnabledWithDeprecatedProperty() {
@Deprecated(since = "3.3.12", forRemoval = true)
void allowsObservedAspectToBeEnabledWithLegacyProperty() {
this.contextRunner
.withPropertyValues("management.observations.annotations.enabled=false",
"micrometer.observations.annotations.enabled=true")