Class AssertionsOnNumberOfColumns
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnNumberOfColumns
Implements the assertion method on the number of columns.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AhasNumberOfColumns(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns is equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfColumnsGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns is greater than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfColumnsGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns is greater than or equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfColumnsLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns is less than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfColumnsLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns is less than or equal to the number in parameter.
-
Method Details
-
hasNumberOfColumns
public static <A extends AbstractAssert<?>> A hasNumberOfColumns(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns 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 row.expected- The number to compare to the size.- Returns:
thisassertion object.- Throws:
AssertionError- If the number of columns is different to the number in parameter.
-
hasNumberOfColumnsGreaterThan
public static <A extends AbstractAssert<?>> A hasNumberOfColumnsGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns 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 columns is less than or equal to the number in parameter.- Since:
- 1.1.0
-
hasNumberOfColumnsLessThan
public static <A extends AbstractAssert<?>> A hasNumberOfColumnsLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns 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 columns is greater than or equal to the number in parameter.- Since:
- 1.1.0
-
hasNumberOfColumnsGreaterThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfColumnsGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns 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 columns is less than the number in parameter.- Since:
- 1.1.0
-
hasNumberOfColumnsLessThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfColumnsLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, int size, int expected) Verifies that the number of columns 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 columns is greater than the number in parameter.- Since:
- 1.1.0
-