Package org.assertj.db.api.assertions
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 TypeMethodDescriptionVerifies that all the values of the column are notnull.Verifies that all the values of the column arenull.
-
Method Details
-
hasOnlyNullValues
T hasOnlyNullValues()Verifies that all the values of the column arenull.Example where the assertion verifies that all the values in the first
Columnof theTablearenull:assertThat(table).column().hasOnlyNullValues();- Returns:
thisassertion object.- Throws:
AssertionError- If at least one of the values of the column is notnull.- See Also:
-
hasOnlyNotNullValues
T hasOnlyNotNullValues()Verifies that all the values of the column are notnull.Example where the assertion verifies that all the values in the first
Columnof theTableare notnull:assertThat(table).column().hasOnlyNotNullValues();- Returns:
thisassertion object.- Throws:
AssertionError- If at least one of the values of the column isnull.- See Also:
-