Class AssertionsOnNumberOfRows

java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnNumberOfRows

public class AssertionsOnNumberOfRows extends Object
Implements the assertion method on the number of rows.
Author:
Régis Pouiller
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      this assertion 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:
      this assertion 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:
      this assertion 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:
      this assertion 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:
      this assertion object.
      Throws:
      AssertionError - If the number of rows is greater than the number in parameter.
      Since:
      1.1.0