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 TypeMethodDescriptionhasCount(int expected) Checks the current number of matching entities.isEmpty()org.assertj.core.api.ListAssert<EntitySnapshot> 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
-
hasCount
Checks the current number of matching entities.- Parameters:
expected- Nonnegative expected count.- Returns:
- This assertion.
-
isEmpty
- Returns:
- This assertion after checking zero matches in currently loaded chunks.
-
isNotEmpty
- Returns:
- This assertion after checking at least one current match.
-
snapshot
- Returns:
- One frozen, internally consistent burst of entity snapshots.
-