Class AssertionsOnNumberOfRows
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnNumberOfRows
Implements the assertion method on the number of rows.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AhasNumberOfRows(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfRowsGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is greater than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfRowsGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is greater than or equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfRowsLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is less than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfRowsLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is less than or equal to the number in parameter.
-
Method Details
-
hasNumberOfRows
public static <A extends AbstractAssert<?>> A hasNumberOfRows(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is equal to the number in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.size- The size of the column.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of rows is different to the number in parameter.
-
hasNumberOfRowsGreaterThan
public static <A extends AbstractAssert<?>> A hasNumberOfRowsGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is greater than the number in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.size- The size of the row.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of rows is less than or equal to the number in parameter.- Since:
- 1.1.0
-
hasNumberOfRowsLessThan
public static <A extends AbstractAssert<?>> A hasNumberOfRowsLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is less than the number in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.size- The size of the row.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of rows is greater than or equal to the number in parameter.- Since:
- 1.1.0
-
hasNumberOfRowsGreaterThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfRowsGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is greater than or equal to the number in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.size- The size of the row.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of rows is less than the number in parameter.- Since:
- 1.1.0
-
hasNumberOfRowsLessThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfRowsLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of rows is less than or equal to the number in parameter.- Type Parameters:
A- The type of the assertion which call this method.- Parameters:
assertion- The assertion which call this method.info- Writable information about an assertion.size- The size of the row.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of rows is greater than the number in parameter.- Since:
- 1.1.0
-