Class AssertionsOnModifiedColumns
java.lang.Object
org.assertj.db.api.assertions.impl.AssertionsOnModifiedColumns
Implements the assertion methods on modified columns.
- Author:
- Régis Pouiller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends AbstractAssert<?>>
AhasModifiedColumns
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, Integer... indexes) Verifies that the indexes of columns with a modification in the values between the start point and the end point is equals to the parameters.static <A extends AbstractAssert<?>>
AhasModifiedColumns
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase columnLetterCase, String... names) Verifies that the names of columns with a modification in the values between the start point and the end point is equals to the parameters.static <A extends AbstractAssert<?>>
AhasNumberOfModifiedColumns
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is equals to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfModifiedColumnsGreaterThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is greater than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfModifiedColumnsGreaterThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is greater than or equal to the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfModifiedColumnsLessThan
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is less than the number in parameter.static <A extends AbstractAssert<?>>
AhasNumberOfModifiedColumnsLessThanOrEqualTo
(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is less than or equal to the number in parameter.
-
Method Details
-
hasNumberOfModifiedColumns
public static <A extends AbstractAssert<?>> A hasNumberOfModifiedColumns(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is equals 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.change
- The change.number
- The expected number of modified columns- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of modified columns is different to the number in parameter.
-
hasNumberOfModifiedColumnsGreaterThan
public static <A extends AbstractAssert<?>> A hasNumberOfModifiedColumnsGreaterThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point 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.change
- The change.number
- The expected number of modified columns- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of modified columns is less than or equal to the number in parameter.
-
hasNumberOfModifiedColumnsLessThan
public static <A extends AbstractAssert<?>> A hasNumberOfModifiedColumnsLessThan(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point is less 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.change
- The change.number
- The expected number of modified columns- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of modified columns is greater than or equal to the number in parameter.
-
hasNumberOfModifiedColumnsGreaterThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfModifiedColumnsGreaterThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point 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.change
- The change.number
- The expected number of modified columns- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of modified columns is less than the number in parameter.
-
hasNumberOfModifiedColumnsLessThanOrEqualTo
public static <A extends AbstractAssert<?>> A hasNumberOfModifiedColumnsLessThanOrEqualTo(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, int number) Verifies that the number of columns with a modification in the values between the start point and the end point 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.change
- The change.number
- The expected number of modified columns- Returns:
this
assertion object.- Throws:
AssertionError
- If the number of modified columns is greater than the number in parameter.
-
hasModifiedColumns
public static <A extends AbstractAssert<?>> A hasModifiedColumns(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, Integer... indexes) Verifies that the indexes of columns with a modification in the values between the start point and the end point is equals to the parameters.- 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.change
- The change.indexes
- Indexes of the modified columns.- Returns:
this
assertion object.- Throws:
AssertionError
- If the indexes of the modified columns are different to the indexes in parameters.
-
hasModifiedColumns
public static <A extends AbstractAssert<?>> A hasModifiedColumns(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase columnLetterCase, String... names) Verifies that the names of columns with a modification in the values between the start point and the end point is equals to the parameters.- 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.change
- The change.columnLetterCase
- Letter case of the column names.names
- The names of the modified columns.- Returns:
this
assertion object.- Throws:
AssertionError
- If the names of the modified columns are different to the names in parameters.
-