Replace TestObservationRegistryAssert.assertThat() with Assertions.assertThat()

See https://github.com/micrometer-metrics/micrometer/pull/5551

Closes gh-33929
This commit is contained in:
Johnny Lim
2024-11-21 10:33:54 +09:00
committed by Brian Clozel
parent 986ffc2072
commit 1910d32405
9 changed files with 20 additions and 36 deletions

View File

@@ -175,8 +175,7 @@ class ScheduledAnnotationBeanPostProcessorObservabilityTests {
}
private TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert assertThatTaskObservation() {
return TestObservationRegistryAssert.assertThat(this.observationRegistry)
.hasObservationWithNameEqualTo("tasks.scheduled.execution").that();
return assertThat(this.observationRegistry).hasObservationWithNameEqualTo("tasks.scheduled.execution").that();
}