public class AssertionsOnChangeType extends Object
The different type of changes are enumerated in ChangeType
.
AssertOnChangeType
Modifier and Type | Method and Description |
---|---|
static <A extends AbstractAssert> |
isCreation(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change)
Verifies that the type of the change is a creation.
|
static <A extends AbstractAssert> |
isDeletion(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change)
Verifies that the type of the change is a deletion.
|
static <A extends AbstractAssert> |
isModification(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change)
Verifies that the type of the change is a modification.
|
static <A extends AbstractAssert> |
isOfType(A assertion,
org.assertj.core.api.WritableAssertionInfo info,
Change change,
ChangeType expected)
Verifies that the type of the change is equal to the type in parameter.
|
public static <A extends AbstractAssert> A isOfType(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change, ChangeType expected)
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.expected
- The expected type to compare to.this
assertion object.AssertionError
- If the type is different to the type in parameter.public static <A extends AbstractAssert> A isCreation(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change)
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.this
assertion object.AssertionError
- If the type of the change is not a creation.public static <A extends AbstractAssert> A isModification(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change)
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.this
assertion object.AssertionError
- If the type of the change is not a modification.public static <A extends AbstractAssert> A isDeletion(A assertion, org.assertj.core.api.WritableAssertionInfo info, Change change)
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.this
assertion object.AssertionError
- If the type of the change is not a deletion.Copyright © 2015 AssertJ. All Rights Reserved.