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 AssertOnModifiedColumns<T extends AssertOnModifiedColumns<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
hasModifiedColumns(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.
|
T |
hasModifiedColumns(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.
|
T |
hasNumberOfModifiedColumns(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.
|
T |
hasNumberOfModifiedColumnsGreaterThan(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.
|
T |
hasNumberOfModifiedColumnsGreaterThanOrEqualTo(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.
|
T |
hasNumberOfModifiedColumnsLessThan(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.
|
T |
hasNumberOfModifiedColumnsLessThanOrEqualTo(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.
|
T hasNumberOfModifiedColumns(int number)
Example where the assertion verifies that there are 3 modified columns :
assertThat(changes).change(1).hasNumberOfModifiedColumns(3);
number - The expected number of modified columnsthis assertion object.AssertionError - If the number of modified columns is different to the number in parameter.ChangeAssert.hasNumberOfModifiedColumns(int)T hasNumberOfModifiedColumnsGreaterThan(int number)
Example where the assertion verifies that there are greater than 3 modified columns :
assertThat(changes).change(1).hasNumberOfModifiedColumnsGreaterThan(3);
number - The expected number of modified columnsthis assertion object.AssertionError - If the number of modified columns is less than or equal to the number in parameter.ChangeAssert.hasNumberOfModifiedColumnsGreaterThan(int)T hasNumberOfModifiedColumnsLessThan(int number)
Example where the assertion verifies that there are less than 3 modified columns :
assertThat(changes).change(1).hasNumberOfModifiedColumnsLessThan(3);
number - The expected number of modified columnsthis assertion object.AssertionError - If the number of modified columns is greater than or equal to the number in parameter.ChangeAssert.hasNumberOfModifiedColumnsLessThan(int)T hasNumberOfModifiedColumnsGreaterThanOrEqualTo(int number)
Example where the assertion verifies that there are ar least 3 modified columns :
assertThat(changes).change(1).hasNumberOfModifiedColumnsGreaterThanOrEqualTo(3);
number - The expected number of modified columnsthis assertion object.AssertionError - If the number of modified columns is less than the number in parameter.ChangeAssert.hasNumberOfModifiedColumnsGreaterThanOrEqualTo(int)T hasNumberOfModifiedColumnsLessThanOrEqualTo(int number)
Example where the assertion verifies that there are at most 3 modified columns :
assertThat(changes).change(1).hasNumberOfModifiedColumnsLessThanOrEqualTo(3);
number - The expected number of modified columnsthis assertion object.AssertionError - If the number of modified columns is greater than the number in parameter.ChangeAssert.hasNumberOfModifiedColumnsLessThanOrEqualTo(int)T hasModifiedColumns(Integer... indexes)
Example where the assertion verifies that indexes of modified columns are 3 and 5 :
assertThat(changes).change(1).hasModifiedColumns(3, 5);
indexes - Indexes of the modified columns.this assertion object.AssertionError - If the indexes of the modified columns are different to the indexes in parameters.ChangeAssert.hasModifiedColumns(Integer...)T hasModifiedColumns(String... names)
Example where the assertion verifies that names of modified columns are "name" and "birth" :
assertThat(changes).change(1).hasModifiedColumns("name", "birth");
names - Names of the modified columns.this assertion object.AssertionError - If the names of the modified columns are different to the names in parameters.ChangeAssert.hasModifiedColumns(String...)Copyright © 2015–2017 AssertJ. All rights reserved.