Package org.assertj.db.api.assertions
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
-
Method Details
-
isNull
T isNull()Verifies that the value isnull
.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
isnull
:assertThat(table).row().value().isNull();
Example where the assertion verifies that the value in the first
Column
of theRow
at end point of the firstChange
isnull
:assertThat(changes).change().rowAtEndPoint().value().isNull();
- Returns:
this
assertion object.- Throws:
AssertionError
- If the value is notnull
.- See Also:
-
isNotNull
T isNotNull()Verifies that the value is notnull
.Example where the assertion verifies that the value in the first
Column
of the firstRow
of theTable
is notnull
:assertThat(table).row().value().isNotNull();
Example where the assertion verifies that the value in the first
Column
of theRow
at end point of the firstChange
is notnull
:assertThat(changes).change().rowAtEndPoint().value().isNotNull();
- Returns:
this
assertion object.- Throws:
AssertionError
- If the value isnull
.- See Also:
-