Class TracesAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractIterableAssert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>,List<io.opentelemetry.sdk.trace.data.SpanData>,TraceAssert>
io.opentelemetry.sdk.testing.assertj.TracesAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>>, org.assertj.core.api.Descriptable<TracesAssert>, org.assertj.core.api.EnumerableAssert<TracesAssert,List<io.opentelemetry.sdk.trace.data.SpanData>>, org.assertj.core.api.ExtensionPoints<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>>, org.assertj.core.api.ObjectEnumerableAssert<TracesAssert,List<io.opentelemetry.sdk.trace.data.SpanData>>

public final class TracesAssert extends org.assertj.core.api.AbstractIterableAssert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>,List<io.opentelemetry.sdk.trace.data.SpanData>,TraceAssert>
Assertions for a list of exported traces.
  • Field Summary

    Fields inherited from class org.assertj.core.api.AbstractIterableAssert

    iterables

    Fields inherited from class org.assertj.core.api.AbstractAssert

    actual, info, myself, objects, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    assertThat(Collection<List<io.opentelemetry.sdk.trace.data.SpanData>> traces)
    Returns an assertion for a list of traces.
    Asserts that the traces under assertion have the same number of traces as provided assertions and executes each TracesAssert in assertions in order with the corresponding trace.
    Asserts that the traces under assertion have the same number of traces as provided assertions and executes each TracesAssert in assertions in order with the corresponding trace.
    protected TracesAssert
    newAbstractIterableAssert(Iterable<? extends List<io.opentelemetry.sdk.trace.data.SpanData>> iterable)
     
    protected TraceAssert
    toAssert(List<io.opentelemetry.sdk.trace.data.SpanData> value, String description)
     

    Methods inherited from class org.assertj.core.api.AbstractIterableAssert

    allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, as, as, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsAnyOfForProxy, containsExactly, containsExactlyElementsOf, containsExactlyForProxy, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsExactlyInAnyOrderForProxy, containsForProxy, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyForProxy, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsOnlyOnceForProxy, containsSequence, containsSequence, containsSequenceForProxy, containsSubsequence, containsSubsequence, containsSubsequenceForProxy, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainForProxy, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSequenceForProxy, doesNotContainSubsequence, doesNotContainSubsequence, doesNotContainSubsequenceForProxy, doesNotHave, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doesNotHaveSameClassAs, doNotHave, element, element, elements, endsWith, endsWith, endsWithForProxy, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnAssertions, filteredOnNull, first, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtractingForProxy, flatMap, flatMap, flatMap, flatMap, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, has, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameClassAs, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, hasToString, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, is, isEmpty, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEmpty, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNullOrEmpty, isOfAnyClassIn, isSameAs, isSubsetOf, isSubsetOf, isSubsetOfForProxy, last, last, map, map, map, navigationDescription, newAbstractIterableAssertForProxy, noneMatch, noneSatisfy, noneSatisfy, overridingErrorMessage, satisfiesExactly, satisfiesExactly, satisfiesExactlyForProxy, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrderForProxy, singleElement, singleElement, size, startsWith, startsWithForProxy, usingComparator, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparatorIgnoringFields, usingRecursiveFieldByFieldElementComparatorOnFields, withFailMessage, withThreadDumpOnError, zipSatisfy

    Methods inherited from class org.assertj.core.api.AbstractAssert

    asInstanceOf, asList, assertionError, asString, descriptionText, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentation

    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
  • Method Details

    • assertThat

      public static TracesAssert assertThat(Collection<List<io.opentelemetry.sdk.trace.data.SpanData>> traces)
      Returns an assertion for a list of traces. The traces must already be grouped into List<SpanData> where each list has spans with the same trace ID.
    • hasTracesSatisfyingExactly

      @SafeVarargs public final TracesAssert hasTracesSatisfyingExactly(Consumer<TraceAssert>... assertions)
      Asserts that the traces under assertion have the same number of traces as provided assertions and executes each TracesAssert in assertions in order with the corresponding trace.
    • hasTracesSatisfyingExactly

      public TracesAssert hasTracesSatisfyingExactly(Iterable<? extends Consumer<TraceAssert>> assertions)
      Asserts that the traces under assertion have the same number of traces as provided assertions and executes each TracesAssert in assertions in order with the corresponding trace.
    • toAssert

      protected TraceAssert toAssert(List<io.opentelemetry.sdk.trace.data.SpanData> value, String description)
      Specified by:
      toAssert in class org.assertj.core.api.AbstractIterableAssert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>,List<io.opentelemetry.sdk.trace.data.SpanData>,TraceAssert>
    • newAbstractIterableAssert

      protected TracesAssert newAbstractIterableAssert(Iterable<? extends List<io.opentelemetry.sdk.trace.data.SpanData>> iterable)
      Specified by:
      newAbstractIterableAssert in class org.assertj.core.api.AbstractIterableAssert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>,List<io.opentelemetry.sdk.trace.data.SpanData>,TraceAssert>