Class BlockRefAssert
java.lang.Object
org.assertj.core.api.AbstractAssert<BlockRefAssert,@Nullable BlockRef>
nl.pim16aap2.lightkeeper.framework.assertions.BlockRefAssert
- All Implemented Interfaces:
org.assertj.core.api.Assert<BlockRefAssert,,BlockRef> org.assertj.core.api.Descriptable<BlockRefAssert>,org.assertj.core.api.ExtensionPoints<BlockRefAssert,BlockRef>
public final class BlockRefAssert
extends org.assertj.core.api.AbstractAssert<BlockRefAssert,@Nullable BlockRef>
Eager assertions over a live block address, using the canonical material and partial-state rules.
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
info, throwUnsupportedExceptionOnEquals -
Method Summary
Modifier and TypeMethodDescriptionChecks a normalized block material with one live read.ofType(org.bukkit.Material expected) Checks a block material with one live read.Checks material and only the state properties named by the spec, reading one snapshot.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, 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
-
ofType
Checks a block material with one live read.- Parameters:
expected- Expected Bukkit material.- Returns:
- This assertion.
-
ofType
Checks a normalized block material with one live read.- Parameters:
expected- Material name or namespaced key.- Returns:
- This assertion.
-
withState
Checks material and only the state properties named by the spec, reading one snapshot.- Parameters:
expected- Partial expected block state.- Returns:
- This assertion.
-