Class HistogramPointDataAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<PointAssertT,PointT>
io.opentelemetry.sdk.testing.assertj.AbstractPointDataAssert<HistogramPointDataAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>
io.opentelemetry.sdk.testing.assertj.HistogramPointDataAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<HistogramPointDataAssert,
,io.opentelemetry.sdk.metrics.data.HistogramPointData> org.assertj.core.api.Descriptable<HistogramPointDataAssert>
,org.assertj.core.api.ExtensionPoints<HistogramPointDataAssert,
io.opentelemetry.sdk.metrics.data.HistogramPointData>
public class HistogramPointDataAssert
extends AbstractPointDataAssert<HistogramPointDataAssert,io.opentelemetry.sdk.metrics.data.HistogramPointData>
Test assertions for
HistogramPointData
.-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ModifierConstructorDescriptionprotected
HistogramPointDataAssert
(io.opentelemetry.sdk.metrics.data.HistogramPointData actual) -
Method Summary
Modifier and TypeMethodDescriptionhasBucketBoundaries
(double... boundaries) Ensures theboundaries
field matches the expected value.hasBucketCounts
(long... counts) Ensures thecounts
field matches the expected value.hasCount
(long expected) Ensures thecount
field matches the expected value.hasMax
(double expected) Ensures themax
field matches the expected value.hasMin
(double expected) Ensures themin
field matches the expected value.hasSum
(double expected) Ensures thesum
field matches the expected value.hasSumGreaterThan
(double boundary) Ensures thesum
field contains a greater value than the passedboundary
.Methods inherited from class io.opentelemetry.sdk.testing.assertj.AbstractPointDataAssert
attributes, exemplars, hasAttributes, hasEpochNanos, hasExemplars, hasStartEpochNanos
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
-
HistogramPointDataAssert
protected HistogramPointDataAssert(io.opentelemetry.sdk.metrics.data.HistogramPointData actual)
-
-
Method Details
-
hasSum
Ensures thesum
field matches the expected value. -
hasSumGreaterThan
Ensures thesum
field contains a greater value than the passedboundary
. -
hasMin
Ensures themin
field matches the expected value. -
hasMax
Ensures themax
field matches the expected value. -
hasCount
Ensures thecount
field matches the expected value. -
hasBucketBoundaries
Ensures theboundaries
field matches the expected value.- Parameters:
boundaries
- The set of bucket boundaries in the same order as the expected collection.
-
hasBucketCounts
Ensures thecounts
field matches the expected value.- Parameters:
counts
- The set of bucket counts in the same order as the expected collection.
-