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 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 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 AssertJ. All Rights Reserved.