Class 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EventDataAssert hasAttributes​(io.opentelemetry.api.common.Attributes attributes)
      Asserts the event has the given attributes.
      EventDataAssert hasAttributesSatisfying​(Consumer<io.opentelemetry.api.common.Attributes> attributes)
      Asserts the event has attributes satisfying the given condition.
      EventDataAssert hasName​(String name)
      Asserts the event has the given name.
      EventDataAssert hasTimestamp​(long timestampNanos)
      Asserts the event has the given timestamp, in nanos.
      EventDataAssert hasTimestamp​(long timestamp, TimeUnit unit)
      Asserts the event has the given timestamp.
      EventDataAssert 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, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
      • Methods inherited from interface org.assertj.core.api.Descriptable

        as, as, as, describedAs
    • Method Detail

      • hasTimestamp

        public EventDataAssert hasTimestamp​(long timestampNanos)
        Asserts the event has the given timestamp, in nanos.
      • hasTimestamp

        public EventDataAssert hasTimestamp​(long timestamp,
                                            TimeUnit unit)
        Asserts the event has the given timestamp.
      • hasTimestamp

        public EventDataAssert hasTimestamp​(Instant timestamp)
        Asserts the event has the given timestamp, in nanos.
      • hasAttributes

        public EventDataAssert hasAttributes​(io.opentelemetry.api.common.Attributes attributes)
        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.