Class AbstractPointDataAssert<PointAssertT extends AbstractPointDataAssert<PointAssertT,PointT>,PointT extends io.opentelemetry.sdk.metrics.data.PointData>

java.lang.Object
org.assertj.core.api.AbstractAssert<PointAssertT,PointT>
io.opentelemetry.sdk.testing.assertj.AbstractPointDataAssert<PointAssertT,PointT>
All Implemented Interfaces:
org.assertj.core.api.Assert<PointAssertT,PointT>, org.assertj.core.api.Descriptable<PointAssertT>, org.assertj.core.api.ExtensionPoints<PointAssertT,PointT>
Direct Known Subclasses:
DoublePointDataAssert, ExponentialHistogramPointDataAssert, HistogramPointDataAssert, LongPointDataAssert, SummaryPointDataAssert

public class AbstractPointDataAssert<PointAssertT extends AbstractPointDataAssert<PointAssertT,PointT>,PointT extends io.opentelemetry.sdk.metrics.data.PointData> extends org.assertj.core.api.AbstractAssert<PointAssertT,PointT>
Test assertions for PointData.
  • Field Summary

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.opentelemetry.sdk.testing.assertj.AttributesAssert
    Returns convenience API to assert against the attributes field.
    org.assertj.core.api.AbstractIterableAssert<?,? extends Iterable<? extends io.opentelemetry.sdk.metrics.data.ExemplarData>,io.opentelemetry.sdk.metrics.data.ExemplarData,?>
    Returns convenience API to assert against the exemplars field.
    hasAttributes(io.opentelemetry.api.common.Attributes expected)
    Ensures the attributes field matches the expected value.
    hasEpochNanos(long expected)
    Ensures the epoch_nanos field matches the expected value.
    hasExemplars(io.opentelemetry.sdk.metrics.data.ExemplarData... exemplars)
    Ensures the exemplars field matches the expected value.
    hasStartEpochNanos(long expected)
    Ensures the start_epoch_nanos 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

  • Method Details

    • hasStartEpochNanos

      public PointAssertT hasStartEpochNanos(long expected)
      Ensures the start_epoch_nanos field matches the expected value.
    • hasEpochNanos

      public PointAssertT hasEpochNanos(long expected)
      Ensures the epoch_nanos field matches the expected value.
    • hasAttributes

      public PointAssertT hasAttributes(io.opentelemetry.api.common.Attributes expected)
      Ensures the attributes field matches the expected value.
    • attributes

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

      public org.assertj.core.api.AbstractIterableAssert<?,? extends Iterable<? extends io.opentelemetry.sdk.metrics.data.ExemplarData>,io.opentelemetry.sdk.metrics.data.ExemplarData,?> exemplars()
      Returns convenience API to assert against the exemplars field.
    • hasExemplars

      public PointAssertT hasExemplars(io.opentelemetry.sdk.metrics.data.ExemplarData... exemplars)
      Ensures the exemplars field matches the expected value.
      Parameters:
      exemplars - The list of exemplars that will be checked, can be in any order.