Class ProtocolValueAssert

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

public final class ProtocolValueAssert extends org.assertj.core.api.AbstractAssert<ProtocolValueAssert,@Nullable IProtocolValue>
Typed, frozen value navigation that preserves accessor/index paths without string coercion.
  • Field Summary

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

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    org.assertj.core.api.AbstractBooleanAssert<?>
     
    org.assertj.core.api.AbstractDoubleAssert<?>
     
    org.assertj.core.api.AbstractLongAssert<?>
     
    org.assertj.core.api.AbstractStringAssert<?>
     
    org.assertj.core.api.AbstractComparableAssert<?,UUID>
     
     
    element(int index)
    Selects a nested list element and retains its index in diagnostics.
    org.assertj.core.api.ListAssert<IProtocolValue>
     
    field(String name)
    Selects a record field, distinguishing a missing key from explicit null.
    org.assertj.core.api.MapAssert<String,IProtocolValue>
     
    hasEnum(String enumClass, String name)
    Compares both enum type and constant without loading a server-only class.
    hasReference(String className, String id)
    Compares the encoded reference type and identity.
     

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

    actual, asInstanceOf, asList, 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

    • asString

      public org.assertj.core.api.AbstractStringAssert<?> asString()
      Specified by:
      asString in interface org.assertj.core.api.Assert<ProtocolValueAssert,IProtocolValue>
      Overrides:
      asString in class org.assertj.core.api.AbstractAssert<ProtocolValueAssert,@Nullable IProtocolValue>
      Returns:
      Assertions over a PString; other variants fail rather than being stringified.
    • asBoolean

      public org.assertj.core.api.AbstractBooleanAssert<?> asBoolean()
      Returns:
      Assertions over a PBool; missing/null/dropped values are not false.
    • asLong

      public org.assertj.core.api.AbstractLongAssert<?> asLong()
      Returns:
      Exact integral-number assertions, preserving all 64 bits.
    • asDouble

      public org.assertj.core.api.AbstractDoubleAssert<?> asDouble()
      Returns:
      Floating-number assertions; integral values are not silently coerced.
    • asUuid

      public org.assertj.core.api.AbstractComparableAssert<?,UUID> asUuid()
      Returns:
      Ordinary UUID assertions over a PUuid.
    • hasEnum

      public ProtocolValueAssert hasEnum(String enumClass, String name)
      Compares both enum type and constant without loading a server-only class.
      Parameters:
      enumClass - Fully qualified enum type.
      name - Constant name.
      Returns:
      This assertion.
    • hasReference

      public ProtocolValueAssert hasReference(String className, String id)
      Compares the encoded reference type and identity.
      Parameters:
      className - Encoded referenced class.
      id - Encoded reference identity.
      Returns:
      This assertion.
    • elements

      public org.assertj.core.api.ListAssert<IProtocolValue> elements()
      Returns:
      Ordinary list assertions over frozen PList contents.
    • element

      public ProtocolValueAssert element(int index)
      Selects a nested list element and retains its index in diagnostics.
      Parameters:
      index - Nonnegative element index; out-of-range observations fail as assertions.
      Returns:
      Nested typed assertions.
    • fields

      public org.assertj.core.api.MapAssert<String,IProtocolValue> fields()
      Returns:
      Ordinary map assertions over frozen PRecord fields.
    • field

      public ProtocolValueAssert field(String name)
      Selects a record field, distinguishing a missing key from explicit null.
      Parameters:
      name - Exact field name.
      Returns:
      Nested typed assertions.
    • isDropped

      public ProtocolValueAssert isDropped()
      Returns:
      This assertion after verifying an explicit unavailable-data marker.
    • asVector

      public Vec3Assert asVector()
      Returns:
      Frozen vector assertions over a PVec using the shared tolerance contracts.