Package io.micrometer.observation.tck
Class TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert,io.micrometer.observation.Observation.ContextView>
io.micrometer.observation.tck.ObservationContextAssert<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert>
io.micrometer.observation.tck.TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert,,io.micrometer.observation.Observation.ContextView> org.assertj.core.api.Descriptable<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert>,org.assertj.core.api.ExtensionPoints<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert,io.micrometer.observation.Observation.ContextView>
- Enclosing class:
TestObservationRegistryAssert
public static final class TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert
extends ObservationContextAssert<TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert>
Provides assertions for
Observation and allows coming back to
TestObservationRegistryAssert.-
Nested Class Summary
Nested classes/interfaces inherited from class io.micrometer.observation.tck.ObservationContextAssert
ObservationContextAssert.ObservationContextAssertReturningThrowableAssert -
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionReturns the originalTestObservationRegistryAssertfor chaining.Verifies that theObservationis started.Verifies that theObservationis stopped.Verifies that theObservationis not started.Verifies that theObservationis not stopped.Methods inherited from class io.micrometer.observation.tck.ObservationContextAssert
assertThat, assertThatError, doesNotHaveContextualNameEqualTo, doesNotHaveContextualNameEqualToIgnoringCase, doesNotHaveError, doesNotHaveHighCardinalityKeyValue, doesNotHaveHighCardinalityKeyValue, doesNotHaveHighCardinalityKeyValueWithKey, doesNotHaveLowCardinalityKeyValue, doesNotHaveLowCardinalityKeyValue, doesNotHaveLowCardinalityKeyValueWithKey, doesNotHaveMapEntry, doesNotHaveNameEqualTo, doesNotHaveNameEqualToIgnoringCase, doesNotHaveParentObservation, hasAnyKeyValues, hasContextualNameEqualTo, hasContextualNameEqualToIgnoringCase, hasError, hasError, hasHighCardinalityKeyValue, hasHighCardinalityKeyValue, hasHighCardinalityKeyValueWithKey, hasKeyValuesCount, hasLowCardinalityKeyValue, hasLowCardinalityKeyValue, hasLowCardinalityKeyValueWithKey, hasMapEntry, hasNameEqualTo, hasNameEqualToIgnoringCase, hasNoKeyValues, hasOnlyKeys, hasParentObservation, hasParentObservationContextMatching, hasParentObservationContextMatching, hasParentObservationContextSatisfying, hasParentObservationEqualTo, hasSubsetOfKeys, then, thenErrorMethods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs, describedAs
-
Method Details
-
hasBeenStarted
public TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert hasBeenStarted()Verifies that theObservationis started.- Returns:
- this
- Throws:
AssertionError- if theObservationis not started
-
hasBeenStopped
public TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert hasBeenStopped()Verifies that theObservationis stopped.- Returns:
- this
- Throws:
AssertionError- if theObservationis not stopped
-
isNotStarted
public TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert isNotStarted()Verifies that theObservationis not started.- Returns:
- this
- Throws:
AssertionError- if theObservationis started
-
isNotStopped
public TestObservationRegistryAssert.TestObservationRegistryAssertReturningObservationContextAssert isNotStopped()Verifies that theObservationis not stopped.- Returns:
- this
- Throws:
AssertionError- if theObservationis stopped
-
backToTestObservationRegistry
Returns the originalTestObservationRegistryAssertfor chaining.- Returns:
- the original assertion for chaining
-