Class SummaryPointAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<PointAssertT,PointT>
io.opentelemetry.sdk.testing.assertj.AbstractPointAssert<SummaryPointAssert,io.opentelemetry.sdk.metrics.data.SummaryPointData>
io.opentelemetry.sdk.testing.assertj.SummaryPointAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<SummaryPointAssert,
,io.opentelemetry.sdk.metrics.data.SummaryPointData> org.assertj.core.api.Descriptable<SummaryPointAssert>
,org.assertj.core.api.ExtensionPoints<SummaryPointAssert,
io.opentelemetry.sdk.metrics.data.SummaryPointData>
public final class SummaryPointAssert
extends AbstractPointAssert<SummaryPointAssert,io.opentelemetry.sdk.metrics.data.SummaryPointData>
Test assertions for
SummaryPointData
.- Since:
- 1.14.0
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Method Summary
Modifier and TypeMethodDescriptionhasCount
(long expected) Asserts the summary has seen the expected count of measurements.hasSum
(double expected) Asserts the summary has the expected sum across all observed measurements.hasValuesSatisfying
(Iterable<? extends Consumer<ValueAtQuantileAssert>> assertions) Asserts the point has values matching all of the given assertions and no more, in any order.final SummaryPointAssert
hasValuesSatisfying
(Consumer<ValueAtQuantileAssert>... assertions) Asserts the point has values matching all of the given assertions and no more, in any order.Methods inherited from class io.opentelemetry.sdk.testing.assertj.AbstractPointAssert
hasAttribute, hasAttribute, hasAttributes, hasAttributes, hasAttributesSatisfying, hasAttributesSatisfying, hasAttributesSatisfying, hasAttributesSatisfyingExactly, hasAttributesSatisfyingExactly, hasEpochNanos, hasStartEpochNanos
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, 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, 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
-
hasCount
Asserts the summary has seen the expected count of measurements. -
hasSum
Asserts the summary has the expected sum across all observed measurements. -
hasValuesSatisfying
@SafeVarargs public final SummaryPointAssert hasValuesSatisfying(Consumer<ValueAtQuantileAssert>... assertions) Asserts the point has values matching all of the given assertions and no more, in any order. -
hasValuesSatisfying
public SummaryPointAssert hasValuesSatisfying(Iterable<? extends Consumer<ValueAtQuantileAssert>> assertions) Asserts the point has values matching all of the given assertions and no more, in any order.
-