Interface AssertOnColumnNullity<T extends AssertOnColumnNullity<T>>

Type Parameters:
T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation" for more details.
All Known Implementing Classes:
AbstractColumnAssert, RequestColumnAssert, TableColumnAssert

public interface AssertOnColumnNullity<T extends AssertOnColumnNullity<T>>
Defines the assertion methods on the nullity of a values of a column.
Author:
Régis Pouiller
  • Method Summary

    Modifier and Type
    Method
    Description
    Verifies that all the values of the column are not null.
    Verifies that all the values of the column are null.
  • Method Details

    • hasOnlyNullValues

      T hasOnlyNullValues()
      Verifies that all the values of the column are null.

      Example where the assertion verifies that all the values in the first Column of the Table are null :

      
       assertThat(table).column().hasOnlyNullValues();
       
      Returns:
      this assertion object.
      Throws:
      AssertionError - If at least one of the values of the column is not null.
      See Also:
    • hasOnlyNotNullValues

      T hasOnlyNotNullValues()
      Verifies that all the values of the column are not null.

      Example where the assertion verifies that all the values in the first Column of the Table are not null :

      
       assertThat(table).column().hasOnlyNotNullValues();
       
      Returns:
      this assertion object.
      Throws:
      AssertionError - If at least one of the values of the column is null.
      See Also: