CHS
- The class of a assertion on changes (an sub-class of ChangesElement
).public interface ToChanges<CHS extends ChangesElement> extends Navigation
Change
.
The different methods return an assertion on changes ChangesAssert
.
These methods exists when navigating (at the beginning assertThat()
) from changes.
As shown in the diagram below, it is possible to call the method to navigate to changes from :
ChangesAssert
)ChangeAssert
)ChangeColumnAssert
)ChangeColumnValueAssert
)ChangeRowAssert
)ChangeRowValueAssert
)
It is important to keep in mind that the methods are executed from the point of view of the last instance with assertion methods on changes (ChangesAssert
).
So all the lines of code below are equivalent : they point on all the changes.
assertThat(changes)......; // Point on all the changes
assertThat(changes).ofAll()......; // Idem
assertThat(changes).change().returnToChanges().ofAll()......; // Use the returnToChanges() to return to origin
// to return on the changes and access to the next/second change of the list
assertThat(changes).change().ofAll()......; // Same as precedent but returnToChanges() is implicit
assertThat(changes).change().column().ofAll()......;
assertThat(changes).change().rowAtEndPoint().ofAll()......;
assertThat(changes).change().column().value().ofAll()......;
assertThat(changes).change().rowAtEndPoint().value().ofAll()......;
// Equivalent to the precedent but with the use of the methods to return to origin
assertThat(changes).change().rowAtEndPoint().value().returnToRow().returnToChange().returnToChanges().ofAll()......;
Modifier and Type | Method and Description |
---|---|
CHS |
ofAll()
Returns an assertion of all the changes.
|
CHS |
ofCreation()
Returns an assertion of the changes of creation (
ChangeType.CREATION ). |
CHS |
ofCreationOnTable(String tableName)
Returns an assertion of the changes of creation (
ChangeType.CREATION ) on a table. |
CHS |
ofDeletion()
Returns an assertion of the changes of deletion (
ChangeType.DELETION ). |
CHS |
ofDeletionOnTable(String tableName)
Returns an assertion of the changes of deletion (
ChangeType.DELETION ) on a table. |
CHS |
ofModification()
Returns an assertion of the changes of modification (
ChangeType.MODIFICATION ). |
CHS |
ofModificationOnTable(String tableName)
Returns an assertion of the changes of modification (
ChangeType.MODIFICATION ) on a table. |
CHS |
onTable(String tableName)
Returns an assertion of the changes on a table.
|
CHS ofAll()
ChangesAssert.ofAll()
,
AbstractAssertWithOriginWithChanges.ofAll()
,
AbstractAssertWithOriginWithChanges.ofAll()
,
AbstractAssertWithOriginWithChanges.ofAll()
,
AbstractAssertWithOriginWithChanges.ofAll()
,
AbstractAssertWithOriginWithChanges.ofAll()
CHS ofCreation()
ChangeType.CREATION
).ChangeType.CREATION
).ChangesAssert.ofCreation()
,
AbstractAssertWithOriginWithChanges.ofCreation()
,
AbstractAssertWithOriginWithChanges.ofCreation()
,
AbstractAssertWithOriginWithChanges.ofCreation()
,
AbstractAssertWithOriginWithChanges.ofCreation()
,
AbstractAssertWithOriginWithChanges.ofCreation()
CHS ofModification()
ChangeType.MODIFICATION
).ChangeType.MODIFICATION
).ChangesAssert.ofModification()
,
AbstractAssertWithOriginWithChanges.ofModification()
,
AbstractAssertWithOriginWithChanges.ofModification()
,
AbstractAssertWithOriginWithChanges.ofModification()
,
AbstractAssertWithOriginWithChanges.ofModification()
,
AbstractAssertWithOriginWithChanges.ofModification()
CHS ofDeletion()
ChangeType.DELETION
).ChangeType.DELETION
).ChangesAssert.ofDeletion()
,
AbstractAssertWithOriginWithChanges.ofDeletion()
,
AbstractAssertWithOriginWithChanges.ofDeletion()
,
AbstractAssertWithOriginWithChanges.ofDeletion()
,
AbstractAssertWithOriginWithChanges.ofDeletion()
,
AbstractAssertWithOriginWithChanges.ofDeletion()
CHS ofCreationOnTable(String tableName)
ChangeType.CREATION
) on a table.tableName
- The table nameChangeType.CREATION
) on the table.ChangesAssert.ofCreationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofCreationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofCreationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofCreationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofCreationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofCreationOnTable(String)
CHS ofModificationOnTable(String tableName)
ChangeType.MODIFICATION
) on a table.tableName
- The table nameChangeType.MODIFICATION
) on the table.ChangesAssert.ofModificationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofModificationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofModificationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofModificationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofModificationOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofModificationOnTable(String)
CHS ofDeletionOnTable(String tableName)
ChangeType.DELETION
) on a table.tableName
- The table nameChangeType.DELETION
) on the table.ChangesAssert.ofDeletionOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofDeletionOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofDeletionOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofDeletionOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofDeletionOnTable(String)
,
AbstractAssertWithOriginWithChanges.ofDeletionOnTable(String)
CHS onTable(String tableName)
tableName
- The table nameChangesAssert.onTable(String)
,
AbstractAssertWithOriginWithChanges.onTable(String)
,
AbstractAssertWithOriginWithChanges.onTable(String)
,
AbstractAssertWithOriginWithChanges.onTable(String)
,
AbstractAssertWithOriginWithChanges.onTable(String)
,
AbstractAssertWithOriginWithChanges.onTable(String)
Copyright © 2020 AssertJ. All rights reserved.