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 TypeMethodDescriptionorg.assertj.core.api.AbstractBooleanAssert<?> org.assertj.core.api.AbstractDoubleAssert<?> asDouble()org.assertj.core.api.AbstractLongAssert<?> asLong()org.assertj.core.api.AbstractStringAssert<?> asString()org.assertj.core.api.AbstractComparableAssert<?, UUID> asUuid()asVector()element(int index) Selects a nested list element and retains its index in diagnostics.org.assertj.core.api.ListAssert<IProtocolValue> elements()Selects a record field, distinguishing a missing key from explicit null.org.assertj.core.api.MapAssert<String, IProtocolValue> fields()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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
asStringin interfaceorg.assertj.core.api.Assert<ProtocolValueAssert,IProtocolValue> - Overrides:
asStringin classorg.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
- Returns:
- Ordinary UUID assertions over a PUuid.
-
hasEnum
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
Compares the encoded reference type and identity.- Parameters:
className- Encoded referenced class.id- Encoded reference identity.- Returns:
- This assertion.
-
elements
- Returns:
- Ordinary list assertions over frozen PList contents.
-
element
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
- Returns:
- Ordinary map assertions over frozen PRecord fields.
-
field
Selects a record field, distinguishing a missing key from explicit null.- Parameters:
name- Exact field name.- Returns:
- Nested typed assertions.
-
isDropped
- Returns:
- This assertion after verifying an explicit unavailable-data marker.
-
asVector
- Returns:
- Frozen vector assertions over a PVec using the shared tolerance contracts.
-