Package org.assertj.db.api.assertions
Interface AssertOnRowOfChangeExistence<T extends AssertOnRowOfChangeExistence<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 Superinterfaces:
AssertOnExistence<T>
- All Known Implementing Classes:
ChangeRowAssert
public interface AssertOnRowOfChangeExistence<T extends AssertOnRowOfChangeExistence<T>>
extends AssertOnExistence<T>
Defines the assertion method on the existence of a row of a change.
- Author:
- Régis Pouiller
-
Method Summary
Modifier and TypeMethodDescriptionVerifies that the row of the change does not exist.exists()
Verifies that the row of the change exists.
-
Method Details
-
exists
T exists()Verifies that the row of the change exists.Example where the assertion verifies that the row at end point of the first change are equal exists :
assertThat(changes).change().rowAtEndPoint().exists();
- Specified by:
exists
in interfaceAssertOnExistence<T extends AssertOnRowOfChangeExistence<T>>
- Returns:
this
assertion object.- Throws:
AssertionError
- If the row of the change does not exist.- See Also:
-
doesNotExist
T doesNotExist()Verifies that the row of the change does not exist.Example where the assertion verifies that the row at end point of the first change are equal does not exist :
assertThat(changes).change().rowAtEndPoint().doesNotExist();
- Specified by:
doesNotExist
in interfaceAssertOnExistence<T extends AssertOnRowOfChangeExistence<T>>
- Returns:
this
assertion object.- Throws:
AssertionError
- If the row of the change exists.- See Also:
-