Class ResourceAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<ResourceAssert,io.opentelemetry.sdk.resources.Resource>
io.opentelemetry.sdk.testing.assertj.ResourceAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<ResourceAssert,io.opentelemetry.sdk.resources.Resource>, org.assertj.core.api.Descriptable<ResourceAssert>, org.assertj.core.api.ExtensionPoints<ResourceAssert,io.opentelemetry.sdk.resources.Resource>

public final class ResourceAssert extends org.assertj.core.api.AbstractAssert<ResourceAssert,io.opentelemetry.sdk.resources.Resource>
Assertions for Resource.
Since:
1.23.0
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
    hasAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value)
    Asserts the resource has the given attribute.
    hasAttribute(AttributeAssertion attributeAssertion)
    Asserts the resource has an attribute matching the attributeAssertion.
    hasAttributes(io.opentelemetry.api.common.Attributes attributes)
    Asserts the resource has the given attributes.
    hasAttributes(Map.Entry<? extends io.opentelemetry.api.common.AttributeKey<?>,?>... entries)
    Asserts the resource has the given attributes.
    Asserts the event has attributes matching all assertions.
    Asserts the event has attributes matching all assertions.
    hasAttributesSatisfying(Consumer<io.opentelemetry.api.common.Attributes> attributes)
    Asserts the resource has attributes satisfying the given condition.
    Asserts the resource has attributes matching all assertions and no more.
    Asserts the resource has attributes matching all assertions and no more.
    hasSchemaUrl(String schemaUrl)
    Asserts the resource has a schemaUrl satisfying the given condition.

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

    areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, describedAs