Class DoubleExemplarAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<DoubleExemplarAssert,io.opentelemetry.sdk.metrics.data.DoubleExemplarData>
io.opentelemetry.sdk.testing.assertj.DoubleExemplarAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<DoubleExemplarAssert,,io.opentelemetry.sdk.metrics.data.DoubleExemplarData> org.assertj.core.api.Descriptable<DoubleExemplarAssert>,org.assertj.core.api.ExtensionPoints<DoubleExemplarAssert,io.opentelemetry.sdk.metrics.data.DoubleExemplarData>
public final class DoubleExemplarAssert
extends org.assertj.core.api.AbstractAssert<DoubleExemplarAssert,io.opentelemetry.sdk.metrics.data.DoubleExemplarData>
Assertions for an exported
DoubleExemplarData.- Since:
- 1.14.0
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionhasEpochNanos(long expected) Asserts the exemplar has the given epoch timestamp, in nanos.hasFilteredAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value) Asserts the exemplar has the given filtered attribute.hasFilteredAttribute(AttributeAssertion attributeAssertion) Asserts the exemplar has the given filtered attribute.hasFilteredAttributes(io.opentelemetry.api.common.Attributes expected) Asserts the exemplar has the given filtered attributes.final DoubleExemplarAsserthasFilteredAttributes(Map.Entry<? extends io.opentelemetry.api.common.AttributeKey<?>, ?>... entries) Asserts the exemplar has the given filtered attributes.hasFilteredAttributesSatisfying(AttributeAssertion... assertions) Asserts the exemplar has filtered attributes matching allassertions.hasFilteredAttributesSatisfying(Iterable<AttributeAssertion> assertions) Asserts the exemplar has filtered attributes matching allassertions.hasFilteredAttributesSatisfyingExactly(AttributeAssertion... assertions) Asserts the exemplar has filtered attributes matching allassertionsand no more.Asserts the exemplar has filtered attributes matching allassertionsand no more.Asserts the exemplar has the given span ID.hasTraceId(String expected) Asserts the exemplar has the given trace ID.hasValue(double expected) Asserts the exemplar has the given value.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, 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
-
Method Details
-
hasEpochNanos
Asserts the exemplar has the given epoch timestamp, in nanos. -
hasSpanId
Asserts the exemplar has the given span ID. -
hasTraceId
Asserts the exemplar has the given trace ID. -
hasValue
Asserts the exemplar has the given value. -
hasFilteredAttribute
public <T> DoubleExemplarAssert hasFilteredAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value) Asserts the exemplar has the given filtered attribute. -
hasFilteredAttribute
Asserts the exemplar has the given filtered attribute. -
hasFilteredAttributes
Asserts the exemplar has the given filtered attributes. -
hasFilteredAttributes
@SafeVarargs public final DoubleExemplarAssert hasFilteredAttributes(Map.Entry<? extends io.opentelemetry.api.common.AttributeKey<?>, ?>... entries) Asserts the exemplar has the given filtered attributes. -
hasFilteredAttributesSatisfying
Asserts the exemplar has filtered attributes matching allassertions. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer). -
hasFilteredAttributesSatisfying
public DoubleExemplarAssert hasFilteredAttributesSatisfying(Iterable<AttributeAssertion> assertions) Asserts the exemplar has filtered attributes matching allassertions. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer). -
hasFilteredAttributesSatisfyingExactly
public DoubleExemplarAssert hasFilteredAttributesSatisfyingExactly(AttributeAssertion... assertions) Asserts the exemplar has filtered attributes matching allassertionsand no more. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-
hasFilteredAttributesSatisfyingExactly
public DoubleExemplarAssert hasFilteredAttributesSatisfyingExactly(Iterable<AttributeAssertion> assertions) Asserts the exemplar has filtered attributes matching allassertionsand no more. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).- Since:
- 1.21.0
-