Class ExemplarDataAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<ExemplarDataAssert,io.opentelemetry.sdk.metrics.data.ExemplarData>
io.opentelemetry.sdk.testing.assertj.ExemplarDataAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<ExemplarDataAssert,io.opentelemetry.sdk.metrics.data.ExemplarData>, org.assertj.core.api.Descriptable<ExemplarDataAssert>, org.assertj.core.api.ExtensionPoints<ExemplarDataAssert,io.opentelemetry.sdk.metrics.data.ExemplarData>

public class ExemplarDataAssert extends org.assertj.core.api.AbstractAssert<ExemplarDataAssert,io.opentelemetry.sdk.metrics.data.ExemplarData>
Test assertions for ExemplarData.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractAssert

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExemplarDataAssert(io.opentelemetry.sdk.metrics.data.ExemplarData actual)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.testing.assertj.AttributesAssert
    Returns convenience API to assert against the filteredAttributes field.
    hasEpochNanos(long expected)
    Ensures the epochNanos field matches the expected value.
    hasFilteredAttributes(io.opentelemetry.api.common.Attributes expected)
    Ensures the fitleredAttributes field matches the expected value.
    hasSpanId(String expected)
    Ensures the spanId field matches the expected value.
    hasTraceId(String expected)
    Ensures the traceId field matches the expected value.
    hasValue(double expected)
    Ensures the value field matches the expected value.

    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, satisfiesForProxy, 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
  • Constructor Details

    • ExemplarDataAssert

      protected ExemplarDataAssert(io.opentelemetry.sdk.metrics.data.ExemplarData actual)
  • Method Details

    • hasEpochNanos

      public ExemplarDataAssert hasEpochNanos(long expected)
      Ensures the epochNanos field matches the expected value.
    • hasSpanId

      public ExemplarDataAssert hasSpanId(String expected)
      Ensures the spanId field matches the expected value.
    • hasTraceId

      public ExemplarDataAssert hasTraceId(String expected)
      Ensures the traceId field matches the expected value.
    • hasValue

      public ExemplarDataAssert hasValue(double expected)
      Ensures the value field matches the expected value.
    • hasFilteredAttributes

      public ExemplarDataAssert hasFilteredAttributes(io.opentelemetry.api.common.Attributes expected)
      Ensures the fitleredAttributes field matches the expected value.
    • filteredAttributes

      public io.opentelemetry.sdk.testing.assertj.AttributesAssert filteredAttributes()
      Returns convenience API to assert against the filteredAttributes field.