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 Type
    Method
    Description
    hasCode(io.opentelemetry.api.trace.StatusCode expected)
    Asserts that the status has the given StatusCode.
    Asserts that the status has the given description.
    Asserts that the status has a description matching the given regular expression.
    Asserts that the status is StatusCode.ERROR.
    Asserts that the status is StatusCode.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, usingRecursiveAssertion, usingRecursiveAssertion, 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
  • Method Details

    • isOk

      public StatusDataAssert isOk()
      Asserts that the status is StatusCode.OK.
    • isError

      public StatusDataAssert isError()
      Asserts that the status is StatusCode.ERROR.
    • hasCode

      public StatusDataAssert hasCode(io.opentelemetry.api.trace.StatusCode expected)
      Asserts that the status has the given StatusCode.
    • hasDescription

      public StatusDataAssert hasDescription(String expected)
      Asserts that the status has the given description.
    • hasDescriptionMatching

      public StatusDataAssert hasDescriptionMatching(String regex)
      Asserts that the status has a description matching the given regular expression.