public class AssertionsOnPrimaryKey extends Object
AssertOnPrimaryKey
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert> |
hasPksNames(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change,
LetterCase primaryKeyLetterCase,
String... names)
Verifies that the columns og the primary key of the rows of the change is the same as the parameters.
|
static <A extends AbstractAssert> |
hasPksValues(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change,
Object... values)
Verifies that the values of the primary key of the rows of the change are the same as the parameters.
|
public static <A extends AbstractAssert> A hasPksNames(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, LetterCase primaryKeyLetterCase, String... names)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.change
- The change.primaryKeyLetterCase
- Letter case of the primary keys.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
.public static <A extends AbstractAssert> A hasPksValues(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, Object... values)
A
- The type of the assertion which call this method.assertion
- The assertion which call this method.info
- Writable information about an assertion.change
- The change.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.Copyright © 2015–2016 AssertJ. All rights reserved.