Package org.assertj.db.api.assertions
Interface AssertOnNumberOfChanges<T extends AssertOnNumberOfChanges<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:
ChangesAssert
public interface AssertOnNumberOfChanges<T extends AssertOnNumberOfChanges<T>>
Defines the assertion method on the number of changes.
- Author:
- Régis Pouiller
-
Method Summary
Modifier and TypeMethodDescriptionhasNumberOfChanges
(int expected) Verifies that the number of changes is equal to the number in parameter.hasNumberOfChangesGreaterThan
(int expected) Verifies that the number of changes is greater than the number in parameter.hasNumberOfChangesGreaterThanOrEqualTo
(int expected) Verifies that the number of changes is greater than or equal to the number in parameter.hasNumberOfChangesLessThan
(int expected) Verifies that the number of changes is less than the number in parameter.hasNumberOfChangesLessThanOrEqualTo
(int expected) Verifies that the number of changes is less than or equal to the number in parameter.
-
Method Details
-
hasNumberOfChanges
Verifies that the number of changes is equal to the number in parameter.Example where the assertion verifies that there are 8 changes :
assertThat(changes).hasNumberOfChanges(8);
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is different to the number in parameter.- See Also:
-
hasNumberOfChangesGreaterThan
Verifies that the number of changes is greater than the number in parameter.Example where the assertion verifies that there are greater than 8 changes :
assertThat(changes).hasNumberOfChangesGreaterThan(8);
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is less than or equal to the number in parameter.- Since:
- 1.1.0
- See Also:
-
hasNumberOfChangesLessThan
Verifies that the number of changes is less than the number in parameter.Example where the assertion verifies that there are less than 8 changes :
assertThat(changes).hasNumberOfChangesLessThan(8);
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is greater than or equal to the number in parameter.- Since:
- 1.1.0
- See Also:
-
hasNumberOfChangesGreaterThanOrEqualTo
Verifies that the number of changes is greater than or equal to the number in parameter.Example where the assertion verifies that there are at least 8 changes :
assertThat(changes).hasNumberOfChangesGreaterThanOrEqualTo(8);
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is less than the number in parameter.- Since:
- 1.1.0
- See Also:
-
hasNumberOfChangesLessThanOrEqualTo
Verifies that the number of changes is less than or equal to the number in parameter.Example where the assertion verifies that there are at most 8 changes :
assertThat(changes).hasNumberOfChangesLessThanOrEqualTo(8);
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is greater than the number in parameter.- Since:
- 1.1.0
- See Also:
-