T - The "self" type of this assertion class. Please read "Emulating 'self types' using Java Generics to simplify fluent API implementation"
for more details.public interface AssertOnValueNullity<T extends AssertOnValueNullity<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
isNotNull()
Verifies that the value is not
null. |
T |
isNull()
Verifies that the value is
null. |
T isNull()
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();
this assertion object.AssertionError - If the value is not null.AbstractValueAssert.isNull(),
AbstractAssertWithValues.isNull()T isNotNull()
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();
this assertion object.AssertionError - If the value is null.AbstractValueAssert.isNotNull(),
AbstractAssertWithValues.isNotNull()Copyright © 2015–2017 AssertJ. All rights reserved.