Class AssertionsOnValuesNullity

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

public class AssertionsOnValuesNullity extends Object
Implements the assertion methods on the nullity of a values of a column/row.
Author:
Régis Pouiller
See Also:
  • Method Details

    • hasOnlyNullValues

      public static <A extends AbstractAssert<?>> A hasOnlyNullValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList)
      Verifies that all the values of the column are null.
      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.
      valuesList - The list of values.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If at least one of the values of the column are not null.
    • hasOnlyNotNullValues

      public static <A extends AbstractAssert<?>> A hasOnlyNotNullValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, List<Value> valuesList)
      Verifies that all the values of the column are not null.
      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.
      valuesList - The list of values.
      Returns:
      this assertion object.
      Throws:
      AssertionError - If at least one of the values of the column are null.