Class LogDataAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<LogDataAssert,io.opentelemetry.sdk.logs.data.LogData>
io.opentelemetry.sdk.testing.assertj.LogDataAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<LogDataAssert,io.opentelemetry.sdk.logs.data.LogData>, org.assertj.core.api.Descriptable<LogDataAssert>, org.assertj.core.api.ExtensionPoints<LogDataAssert,io.opentelemetry.sdk.logs.data.LogData>

public class LogDataAssert extends org.assertj.core.api.AbstractAssert<LogDataAssert,io.opentelemetry.sdk.logs.data.LogData>
Test assertions for LogData.
  • Field Summary

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    LogDataAssert(io.opentelemetry.sdk.logs.data.LogData actual)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    hasAttributes(io.opentelemetry.api.common.Attributes attributes)
    Asserts the log has the given attributes.
    hasAttributes(Map.Entry<? extends io.opentelemetry.api.common.AttributeKey<?>,?>... entries)
    Asserts the log has the given attributes.
    hasAttributesSatisfying(Consumer<io.opentelemetry.api.common.Attributes> attributes)
    Asserts the log has attributes satisfying the given condition.
    Asserts the log has the given body.
    hasEpochNanos(long epochNanos)
    Asserts the log has the given epoch timestamp.
    hasInstrumentationScope(io.opentelemetry.sdk.common.InstrumentationScopeInfo instrumentationScopeInfo)
    Asserts the InstrumentationScopeInfo associated with a log matches the expected value.
    hasResource(io.opentelemetry.sdk.resources.Resource resource)
    Asserts the Resource associated with a log matches the expected value.
    hasSeverity(io.opentelemetry.sdk.logs.data.Severity severity)
    Asserts the log has the given severity.
    hasSeverityText(String severityText)
    Asserts the log has the given severity text.
    hasSpanContext(io.opentelemetry.api.trace.SpanContext spanContext)
    Asserts the log has the given span context.

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

    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, 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
  • Constructor Details

    • LogDataAssert

      protected LogDataAssert(io.opentelemetry.sdk.logs.data.LogData actual)
  • Method Details

    • hasResource

      public LogDataAssert hasResource(io.opentelemetry.sdk.resources.Resource resource)
      Asserts the Resource associated with a log matches the expected value.
    • hasInstrumentationScope

      public LogDataAssert hasInstrumentationScope(io.opentelemetry.sdk.common.InstrumentationScopeInfo instrumentationScopeInfo)
      Asserts the InstrumentationScopeInfo associated with a log matches the expected value.
    • hasEpochNanos

      public LogDataAssert hasEpochNanos(long epochNanos)
      Asserts the log has the given epoch timestamp.
    • hasSpanContext

      public LogDataAssert hasSpanContext(io.opentelemetry.api.trace.SpanContext spanContext)
      Asserts the log has the given span context.
    • hasSeverity

      public LogDataAssert hasSeverity(io.opentelemetry.sdk.logs.data.Severity severity)
      Asserts the log has the given severity.
    • hasSeverityText

      public LogDataAssert hasSeverityText(String severityText)
      Asserts the log has the given severity text.
    • hasBody

      public LogDataAssert hasBody(String body)
      Asserts the log has the given body.
    • hasAttributes

      public LogDataAssert hasAttributes(io.opentelemetry.api.common.Attributes attributes)
      Asserts the log has the given attributes.
    • hasAttributes

      @SafeVarargs public final LogDataAssert hasAttributes(Map.Entry<? extends io.opentelemetry.api.common.AttributeKey<?>,?>... entries)
      Asserts the log has the given attributes.
    • hasAttributesSatisfying

      public LogDataAssert hasAttributesSatisfying(Consumer<io.opentelemetry.api.common.Attributes> attributes)
      Asserts the log has attributes satisfying the given condition.