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 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TracesAssert
assertThat(Collection<List<io.opentelemetry.sdk.trace.data.SpanData>> traces)
Returns an assertion for a list of traces.TracesAssert
hasTracesSatisfyingExactly(Consumer<TraceAssert>... assertions)
Asserts that the traces under assertion have the same number of traces as providedassertions
and executes eachTracesAssert
inassertions
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, anyMatch, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, as, as, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsSequence, containsSequence, containsSubsequence, containsSubsequence, describedAs, describedAs, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHave, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doesNotHaveSameClassAs, doNotHave, element, element, endsWith, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnNull, first, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatMap, flatMap, flatMap, flatMap, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, has, hasAtLeastOneElementOfType, 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, last, last, map, map, map, navigationDescription, noneMatch, noneSatisfy, overridingErrorMessage, singleElement, singleElement, size, startsWith, usingComparator, usingComparator, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, withFailMessage, withThreadDumpOnError, zipSatisfy
-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, descriptionText, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withRepresentation
-
-
-
-
Method Detail
-
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 intoList<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 providedassertions
and executes eachTracesAssert
inassertions
in order with the corresponding trace.
-
toAssert
protected TraceAssert toAssert(List<io.opentelemetry.sdk.trace.data.SpanData> value, String description)
- Specified by:
toAssert
in classorg.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 classorg.assertj.core.api.AbstractIterableAssert<TracesAssert,List<List<io.opentelemetry.sdk.trace.data.SpanData>>,List<io.opentelemetry.sdk.trace.data.SpanData>,TraceAssert>
-
-