Class LongExemplarAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<LongExemplarAssert,io.opentelemetry.sdk.metrics.data.LongExemplarData>
io.opentelemetry.sdk.testing.assertj.LongExemplarAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<LongExemplarAssert,,io.opentelemetry.sdk.metrics.data.LongExemplarData> org.assertj.core.api.Descriptable<LongExemplarAssert>,org.assertj.core.api.ExtensionPoints<LongExemplarAssert,io.opentelemetry.sdk.metrics.data.LongExemplarData>
public final class LongExemplarAssert
extends org.assertj.core.api.AbstractAssert<LongExemplarAssert,io.opentelemetry.sdk.metrics.data.LongExemplarData>
Assertions for an exported
LongExemplarData.- 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 LongExemplarAsserthasFilteredAttributes(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 allassertionsand no more.hasFilteredAttributesSatisfying(Iterable<AttributeAssertion> assertions) 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(long 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> LongExemplarAssert 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 LongExemplarAssert 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 allassertionsand no more. -
hasFilteredAttributesSatisfying
Asserts the exemplar has filtered attributes matching allassertionsand no more. Assertions can be created using methods likeOpenTelemetryAssertions.satisfies(AttributeKey, OpenTelemetryAssertions.LongAssertConsumer).
-