Class AssertionsOnNumberOfChanges
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnNumberOfChanges
Implements the assertion method on the number of changes.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AhasNumberOfChanges
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfChangesGreaterThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is greater than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfChangesGreaterThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is greater than or equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfChangesLessThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is less to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfChangesLessThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is less than or equal to the number in parameter.
-
Method Details
-
hasNumberOfChanges
public static <A extends AbstractAssert<?>> A hasNumberOfChanges(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is equal to the number in parameter.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.changes
- The changes.expected
- The number to compare to the size.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is different to the number in parameter.
-
hasNumberOfChangesGreaterThan
public static <A extends AbstractAssert<?>> A hasNumberOfChangesGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is greater than the number in parameter.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.changes
- The changes.expected
- The number to compare to the size.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is less than or equal to the number in parameter.
-
hasNumberOfChangesLessThan
public static <A extends AbstractAssert<?>> A hasNumberOfChangesLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is less to the number in parameter.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.changes
- The changes.expected
- The number to compare to the size.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is greater than or equal to the number in parameter.
-
hasNumberOfChangesGreaterThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfChangesGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is greater than or equal to the number in parameter.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.changes
- The changes.expected
- The number to compare to the size.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is less than the number in parameter.
-
hasNumberOfChangesLessThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfChangesLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Changes changes, int expected) Verifies that the number of changes is less than or equal to the number in parameter.- Type Parameters:
A
- The type of the assertion which call this method.- Parameters:
assertion
- The assertion which call this method.info
- Writable information about an assertion.changes
- The changes.expected
- The number to compare to the size.- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of changes is greater than the number in parameter.
-