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 AssertOnPrimaryKey<T extends AssertOnPrimaryKey<T>>
Modifier and Type | Method and Description |
---|---|
T |
hasPksNames(String... names)
Verifies that the columns og the primary key of the rows of the change is the same as the parameters.
|
T |
hasPksValues(Object... values)
Verifies that the values of the primary key of the rows of the change are the same as the parameters.
|
T hasPksNames(String... names)
Example where the assertion verifies that primary key is the column called id :
assertThat(changes).change(1).hasPksNames("id");
names
- The names of the primary key associated with the rows of the change.this
assertion object.AssertionError
- If the columns of the primary key are different to the names in parameters.NullPointerException
- If one of the names in parameters is null
.ChangeAssert.hasPksNames(String...)
T hasPksValues(Object... values)
Example where the assertion verifies that primary key have the value 1 :
assertThat(changes).change(1).hasPksValues(1);
values
- The values of the primary key associated with the rows of the change.this
assertion object.AssertionError
- If the values of the primary key are different to the values in parameters.ChangeAssert.hasPksValues(Object...)
Copyright © 2020 AssertJ. All rights reserved.