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
Columnof the firstRowof theTableisnull:assertThat(table).row().value().isNull();Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeisnull:assertThat(changes).change().rowAtEndPoint().value().isNull();- Returns:
thisassertion 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
Columnof the firstRowof theTableis notnull:assertThat(table).row().value().isNotNull();Example where the assertion verifies that the value in the first
Columnof theRowat end point of the firstChangeis notnull:assertThat(changes).change().rowAtEndPoint().value().isNotNull();- Returns:
thisassertion object.- Throws:
AssertionError- If the value isnull.- See Also:
-