Class HistogramPointAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<PointAssertT,PointT>
io.opentelemetry.sdk.testing.assertj.AbstractPointAssert<HistogramPointAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>
io.opentelemetry.sdk.testing.assertj.HistogramPointAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<HistogramPointAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>, org.assertj.core.api.Descriptable<HistogramPointAssert>, org.assertj.core.api.ExtensionPoints<HistogramPointAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>

public final class HistogramPointAssert extends AbstractPointAssert<HistogramPointAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>
Test assertions for HistogramPointData.
Since:
1.14.0
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    hasBucketBoundaries(double... boundaries)
    Asserts the boundaries field matches the expected value.
    hasBucketCounts(long... counts)
    Asserts the counts field matches the expected value.
    hasCount(long expected)
    Asserts the count field matches the expected value.
    hasExemplars(io.opentelemetry.sdk.metrics.data.DoubleExemplarData... exemplars)
    Asserts the point has the specified exemplars, in any order.
    Asserts the point has exemplars matching all of the assertions, in any order.
    Asserts the point has exemplars matching all of the assertions, in any order.
    hasMax(double expected)
    Asserts the max field matches the expected value.
    hasMin(double expected)
    Asserts the min field matches the expected value.
    hasSum(double expected)
    Asserts the sum field matches the expected value.
    hasSumGreaterThan(double boundary)
    Asserts the sum field contains a greater value than the passed boundary.

    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, 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

    • hasSum

      public HistogramPointAssert hasSum(double expected)
      Asserts the sum field matches the expected value.
    • hasSumGreaterThan

      public HistogramPointAssert hasSumGreaterThan(double boundary)
      Asserts the sum field contains a greater value than the passed boundary.
    • hasMin

      public HistogramPointAssert hasMin(double expected)
      Asserts the min field matches the expected value.
    • hasMax

      public HistogramPointAssert hasMax(double expected)
      Asserts the max field matches the expected value.
    • hasCount

      public HistogramPointAssert hasCount(long expected)
      Asserts the count field matches the expected value.
    • hasBucketBoundaries

      public HistogramPointAssert hasBucketBoundaries(double... boundaries)
      Asserts the boundaries field matches the expected value.
      Parameters:
      boundaries - The set of bucket boundaries in the same order as the expected collection.
    • hasBucketCounts

      public HistogramPointAssert hasBucketCounts(long... counts)
      Asserts the counts field matches the expected value.
      Parameters:
      counts - The set of bucket counts in the same order as the expected collection.
    • hasExemplars

      public HistogramPointAssert hasExemplars(io.opentelemetry.sdk.metrics.data.DoubleExemplarData... exemplars)
      Asserts the point has the specified exemplars, in any order.
    • hasExemplarsSatisfying

      @SafeVarargs public final HistogramPointAssert hasExemplarsSatisfying(Consumer<DoubleExemplarAssert>... assertions)
      Asserts the point has exemplars matching all of the assertions, in any order.
    • hasExemplarsSatisfying

      public HistogramPointAssert hasExemplarsSatisfying(Iterable<? extends Consumer<DoubleExemplarAssert>> assertions)
      Asserts the point has exemplars matching all of the assertions, in any order.