Class EntityQueryAssert

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

public final class EntityQueryAssert extends org.assertj.core.api.AbstractAssert<EntityQueryAssert,@Nullable EntityQuery>
Live entity-query assertions; count checks use the cheap count-only RPC and never load chunks.
  • Field Summary

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

    info, throwUnsupportedExceptionOnEquals
  • Method Summary

    Modifier and Type
    Method
    Description
    hasCount(int expected)
    Checks the current number of matching entities.
     
     
    org.assertj.core.api.ListAssert<EntitySnapshot>
     

    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

    • hasCount

      public EntityQueryAssert hasCount(int expected)
      Checks the current number of matching entities.
      Parameters:
      expected - Nonnegative expected count.
      Returns:
      This assertion.
    • isEmpty

      public EntityQueryAssert isEmpty()
      Returns:
      This assertion after checking zero matches in currently loaded chunks.
    • isNotEmpty

      public EntityQueryAssert isNotEmpty()
      Returns:
      This assertion after checking at least one current match.
    • snapshot

      public org.assertj.core.api.ListAssert<EntitySnapshot> snapshot()
      Returns:
      One frozen, internally consistent burst of entity snapshots.