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
ConstructorsModifierConstructorDescriptionprotectedAbstractPointDataAssert(PointT actual, Class<PointAssertT> assertClass) -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.sdk.testing.assertj.AttributesAssertReturns convenience API to assert against theattributesfield.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 theexemplarsfield.hasAttributes(io.opentelemetry.api.common.Attributes expected) Ensures theattributesfield matches the expected value.hasEpochNanos(long expected) Ensures theepoch_nanosfield matches the expected value.hasExemplars(io.opentelemetry.sdk.metrics.data.ExemplarData... exemplars) Ensures theexemplarsfield matches the expected value.hasStartEpochNanos(long expected) Ensures thestart_epoch_nanosfield 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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Constructor Details
-
AbstractPointDataAssert
-
-
Method Details
-
hasStartEpochNanos
Ensures thestart_epoch_nanosfield matches the expected value. -
hasEpochNanos
Ensures theepoch_nanosfield matches the expected value. -
hasAttributes
Ensures theattributesfield matches the expected value. -
attributes
public io.opentelemetry.sdk.testing.assertj.AttributesAssert attributes()Returns convenience API to assert against theattributesfield. -
exemplars
public org.assertj.core.api.AbstractIterableAssert<?,? extends Iterable<? extends io.opentelemetry.sdk.metrics.data.ExemplarData>, exemplars()io.opentelemetry.sdk.metrics.data.ExemplarData, ?> Returns convenience API to assert against theexemplarsfield. -
hasExemplars
Ensures theexemplarsfield matches the expected value.- Parameters:
exemplars- The list of exemplars that will be checked, can be in any order.
-