Interface AssertOnValueNullity<T extends AssertOnValueNullity<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:
AbstractAssertWithValues, AbstractColumnValueAssert, AbstractRowValueAssert, AbstractValueAssert, ChangeColumnValueAssert, ChangeRowValueAssert, RequestColumnValueAssert, RequestRowValueAssert, TableColumnValueAssert, TableRowValueAssert

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

    Modifier and Type
    Method
    Description
    Verifies that the value is not null.
    Verifies that the value is null.
  • Method Details

    • isNull

      T isNull()
      Verifies that the value is null.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is null :

       
       assertThat(table).row().value().isNull();
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is null :

       
       assertThat(changes).change().rowAtEndPoint().value().isNull();
       
       
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is not null.
      See Also:
    • isNotNull

      T isNotNull()
      Verifies that the value is not null.

      Example where the assertion verifies that the value in the first Column of the first Row of the Table is not null :

       
       assertThat(table).row().value().isNotNull();
       
       

      Example where the assertion verifies that the value in the first Column of the Row at end point of the first Change is not null :

       
       assertThat(changes).change().rowAtEndPoint().value().isNotNull();
       
       
      Returns:
      this assertion object.
      Throws:
      AssertionError - If the value is null.
      See Also: