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(AttributeAssertion... assertions) Asserts the event has attributes matching allassertions.hasAttributesSatisfying(Iterable<AttributeAssertion> assertions) Asserts the event has attributes matching allassertions.hasAttributesSatisfying(Consumer<io.opentelemetry.api.common.Attributes> attributes) Asserts the event has attributes satisfying the given condition.hasAttributesSatisfyingExactly(AttributeAssertion... assertions) Asserts the event has attributes matching allassertionsand no more.hasAttributesSatisfyingExactly(Iterable<AttributeAssertion> assertions) Asserts the event has attributes matching allassertionsand no more.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
areEqual, 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, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, 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
-
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. -
hasAttributesSatisfying
Asserts the event has attributes matching allassertions. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-
hasAttributesSatisfying
Asserts the event has attributes matching allassertions. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-
hasAttributesSatisfyingExactly
Asserts the event has attributes matching allassertionsand no more. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-
hasAttributesSatisfyingExactly
Asserts the event has attributes matching allassertionsand no more. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-