Class HistogramAssert

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

public final class HistogramAssert extends org.assertj.core.api.AbstractAssert<HistogramAssert,io.opentelemetry.sdk.metrics.data.HistogramData>
Test assertions for HistogramData.
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
    Asserts that for each given assertion, at least one point in the histogram satisfies it.
    Asserts that for each given assertion, at least one point in the histogram satisfies it.
    Asserts the histogram has points matching all of the given assertions and no more, in any order.
    Asserts the histogram has points matching all of the given assertions and no more, in any order.
    Ensures that aggregation_temporality field is CUMULATIVE.
    Ensures that aggregation_temporality field is DELTA.

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

    actual, areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, usingEquals, usingEquals, usingRecursiveAssertion, usingRecursiveAssertion, 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, describedAs
  • Method Details

    • isCumulative

      public HistogramAssert isCumulative()
      Ensures that aggregation_temporality field is CUMULATIVE.
    • isDelta

      public HistogramAssert isDelta()
      Ensures that aggregation_temporality field is DELTA.
    • hasPointsSatisfying

      @SafeVarargs public final HistogramAssert hasPointsSatisfying(Consumer<HistogramPointAssert>... assertions)
      Asserts the histogram has points matching all of the given assertions and no more, in any order.
    • hasPointsSatisfying

      public HistogramAssert hasPointsSatisfying(Iterable<? extends Consumer<HistogramPointAssert>> assertions)
      Asserts the histogram has points matching all of the given assertions and no more, in any order.
    • containsPointsSatisfying

      @SafeVarargs public final HistogramAssert containsPointsSatisfying(Consumer<HistogramPointAssert>... assertions)
      Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra points that match none of the assertions are allowed, and a single point may satisfy multiple assertions.
      Since:
      1.62.0
    • containsPointsSatisfying

      public HistogramAssert containsPointsSatisfying(Iterable<? extends Consumer<HistogramPointAssert>> assertions)
      Asserts that for each given assertion, at least one point in the histogram satisfies it. Extra points that match none of the assertions are allowed, and a single point may satisfy multiple assertions.
      Since:
      1.62.0