Class CapturedEventAssert

java.lang.Object
org.assertj.core.api.AbstractAssert<CapturedEventAssert,@Nullable CapturedEventSnapshot>
nl.pim16aap2.lightkeeper.framework.assertions.CapturedEventAssert
All Implemented Interfaces:
org.assertj.core.api.Assert<CapturedEventAssert,CapturedEventSnapshot>, org.assertj.core.api.Descriptable<CapturedEventAssert>, org.assertj.core.api.ExtensionPoints<CapturedEventAssert,CapturedEventSnapshot>

public final class CapturedEventAssert extends org.assertj.core.api.AbstractAssert<CapturedEventAssert,@Nullable CapturedEventSnapshot>
Frozen event assertions that preserve typed fields and distinguish absent from explicit-null values.
  • Field Summary

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

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    doesNotHaveField(String accessorName)
    Checks that an accessor is absent from the capture.
    hasField(String accessorName)
    Checks whether an accessor was captured, including explicit-null and dropped values.
     
     
    value(String accessorName)
    Selects a captured typed value, retaining the event class and accessor in diagnostics.

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

    actual, asInstanceOf, asList, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, usingComparator, usingComparator, usingDefaultComparator, usingEquals, usingEquals, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.assertj.core.api.Descriptable

    as, as, as, describedAs, describedAs
  • Method Details

    • hasField

      public CapturedEventAssert hasField(String accessorName)
      Checks whether an accessor was captured, including explicit-null and dropped values.
      Parameters:
      accessorName - Exact captured accessor name.
      Returns:
      This assertion.
    • doesNotHaveField

      public CapturedEventAssert doesNotHaveField(String accessorName)
      Checks that an accessor is absent from the capture.
      Parameters:
      accessorName - Exact captured accessor name.
      Returns:
      This assertion.
    • value

      public ProtocolValueAssert value(String accessorName)
      Selects a captured typed value, retaining the event class and accessor in diagnostics.
      Parameters:
      accessorName - Exact accessor name; missing accessors fail rather than becoming null.
      Returns:
      Frozen typed-value assertions.
    • isCancelled

      public CapturedEventAssert isCancelled()
      Returns:
      This assertion after checking a present boolean cancellation field is true.
    • isNotCancelled

      public CapturedEventAssert isNotCancelled()
      Returns:
      This assertion after checking a present boolean cancellation field is false.