Class StatusDataAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<StatusDataAssert,io.opentelemetry.sdk.trace.data.StatusData>
io.opentelemetry.sdk.testing.assertj.StatusDataAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<StatusDataAssert,,io.opentelemetry.sdk.trace.data.StatusData> org.assertj.core.api.Descriptable<StatusDataAssert>,org.assertj.core.api.ExtensionPoints<StatusDataAssert,io.opentelemetry.sdk.trace.data.StatusData>
public final class StatusDataAssert
extends org.assertj.core.api.AbstractAssert<StatusDataAssert,io.opentelemetry.sdk.trace.data.StatusData>
Assertions for the
StatusData of an exported SpanData.- Since:
- 1.16.0
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionhasCode(io.opentelemetry.api.trace.StatusCode expected) Asserts that the status has the givenStatusCode.hasDescription(String expected) Asserts that the status has the given description.hasDescriptionMatching(String regex) Asserts that the status has a description matching the given regular expression.isError()Asserts that the status isStatusCode.ERROR.isOk()Asserts that the status isStatusCode.OK.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
-
isOk
Asserts that the status isStatusCode.OK. -
isError
Asserts that the status isStatusCode.ERROR. -
hasCode
Asserts that the status has the givenStatusCode. -
hasDescription
Asserts that the status has the given description. -
hasDescriptionMatching
Asserts that the status has a description matching the given regular expression.
-