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 Type
    Method
    Description
    ofType(String expected)
    Checks a normalized block material with one live read.
    ofType(org.bukkit.Material expected)
    Checks a block material with one live read.
    withState(BlockSpec expected)
    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, 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

    • ofType

      public BlockRefAssert ofType(org.bukkit.Material expected)
      Checks a block material with one live read.
      Parameters:
      expected - Expected Bukkit material.
      Returns:
      This assertion.
    • ofType

      public BlockRefAssert ofType(String expected)
      Checks a normalized block material with one live read.
      Parameters:
      expected - Material name or namespaced key.
      Returns:
      This assertion.
    • withState

      public BlockRefAssert withState(BlockSpec expected)
      Checks material and only the state properties named by the spec, reading one snapshot.
      Parameters:
      expected - Partial expected block state.
      Returns:
      This assertion.