Class EventDataAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<EventDataAssert,io.opentelemetry.sdk.trace.data.EventData>
io.opentelemetry.sdk.testing.assertj.EventDataAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<EventDataAssert,
,io.opentelemetry.sdk.trace.data.EventData> org.assertj.core.api.Descriptable<EventDataAssert>
,org.assertj.core.api.ExtensionPoints<EventDataAssert,
io.opentelemetry.sdk.trace.data.EventData>
public final class EventDataAssert
extends org.assertj.core.api.AbstractAssert<EventDataAssert,io.opentelemetry.sdk.trace.data.EventData>
Assertions for
EventData
.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Method Summary
Modifier and TypeMethodDescriptionhasAttributes
(io.opentelemetry.api.common.Attributes attributes) Asserts the event has the given attributes.hasAttributesSatisfying
(Consumer<io.opentelemetry.api.common.Attributes> attributes) Asserts the event has attributes satisfying the given condition.Asserts the event has the given name.hasTimestamp
(long timestampNanos) Asserts the event has the given timestamp, in nanos.hasTimestamp
(long timestamp, TimeUnit unit) Asserts the event has the given timestamp.hasTimestamp
(Instant timestamp) Asserts the event has the given timestamp, in nanos.Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, 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, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Method Details
-
hasName
Asserts the event has the given name. -
hasTimestamp
Asserts the event has the given timestamp, in nanos. -
hasTimestamp
Asserts the event has the given timestamp. -
hasTimestamp
Asserts the event has the given timestamp, in nanos. -
hasAttributes
Asserts the event has the given attributes. -
hasAttributesSatisfying
public EventDataAssert hasAttributesSatisfying(Consumer<io.opentelemetry.api.common.Attributes> attributes) Asserts the event has attributes satisfying the given condition.
-