Class AttributesAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<AttributesAssert,io.opentelemetry.api.common.Attributes>
-
- io.opentelemetry.sdk.testing.assertj.AttributesAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<AttributesAssert,io.opentelemetry.api.common.Attributes>
,org.assertj.core.api.Descriptable<AttributesAssert>
,org.assertj.core.api.ExtensionPoints<AttributesAssert,io.opentelemetry.api.common.Attributes>
public class AttributesAssert extends org.assertj.core.api.AbstractAssert<AttributesAssert,io.opentelemetry.api.common.Attributes>
Assertions forAttributes
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> AttributesAssert
containsEntry(io.opentelemetry.api.common.AttributeKey<T> key, T value)
Asserts the attributes have the given key and value.AttributesAssert
containsEntry(String key, boolean value)
Asserts the attributes have the given key and boolean value.AttributesAssert
containsEntry(String key, double value)
Asserts the attributes have the given key and double value.AttributesAssert
containsEntry(String key, long value)
Asserts the attributes have the given key and long value.AttributesAssert
containsEntry(String key, Boolean... value)
Asserts the attributes have the given key and boolean array value.AttributesAssert
containsEntry(String key, Double... value)
Asserts the attributes have the given key and double array value.AttributesAssert
containsEntry(String key, Long... value)
Asserts the attributes have the given key and long array value.AttributesAssert
containsEntry(String key, String value)
Asserts the attributes have the given key and string value.AttributesAssert
containsEntry(String key, String... value)
Asserts the attributes have the given key and string array value.AttributesAssert
containsEntryWithBooleanValuesOf(String key, Iterable<Boolean> value)
Asserts the attributes have the given key and boolean array value.AttributesAssert
containsEntryWithDoubleValuesOf(String key, Iterable<Double> value)
Asserts the attributes have the given key and double array value.AttributesAssert
containsEntryWithLongValuesOf(String key, Iterable<Long> value)
Asserts the attributes have the given key and long array value.AttributesAssert
containsEntryWithStringValuesOf(String key, Iterable<String> value)
Asserts the attributes have the given key and string array value.-
Methods inherited from class org.assertj.core.api.AbstractAssert
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, 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, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Method Detail
-
containsEntry
public <T> AttributesAssert containsEntry(io.opentelemetry.api.common.AttributeKey<T> key, T value)
Asserts the attributes have the given key and value.
-
containsEntry
public AttributesAssert containsEntry(String key, String value)
Asserts the attributes have the given key and string value.
-
containsEntry
public AttributesAssert containsEntry(String key, boolean value)
Asserts the attributes have the given key and boolean value.
-
containsEntry
public AttributesAssert containsEntry(String key, long value)
Asserts the attributes have the given key and long value.
-
containsEntry
public AttributesAssert containsEntry(String key, double value)
Asserts the attributes have the given key and double value.
-
containsEntry
public AttributesAssert containsEntry(String key, String... value)
Asserts the attributes have the given key and string array value.
-
containsEntry
public AttributesAssert containsEntry(String key, Boolean... value)
Asserts the attributes have the given key and boolean array value.
-
containsEntry
public AttributesAssert containsEntry(String key, Long... value)
Asserts the attributes have the given key and long array value.
-
containsEntry
public AttributesAssert containsEntry(String key, Double... value)
Asserts the attributes have the given key and double array value.
-
containsEntryWithStringValuesOf
public AttributesAssert containsEntryWithStringValuesOf(String key, Iterable<String> value)
Asserts the attributes have the given key and string array value.
-
containsEntryWithBooleanValuesOf
public AttributesAssert containsEntryWithBooleanValuesOf(String key, Iterable<Boolean> value)
Asserts the attributes have the given key and boolean array value.
-
containsEntryWithLongValuesOf
public AttributesAssert containsEntryWithLongValuesOf(String key, Iterable<Long> value)
Asserts the attributes have the given key and long array value.
-
containsEntryWithDoubleValuesOf
public AttributesAssert containsEntryWithDoubleValuesOf(String key, Iterable<Double> value)
Asserts the attributes have the given key and double array value.
-
-