CH - The class of a assertion on a change (an sub-class of ChangeElement).public interface ToChange<CH extends ChangeElement> extends Navigation
Change.
The different methods return an instance with assertion methods on one change (ChangeAssert).
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 a change 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 the change at index 1 (as usual, the list start at index 0).
assertThat(changes).change(1)......; // Point directly on the change at index 1
assertThat(changes).change().returnToChange().change()......; // Use the returnToChange() method to return to origin
// to return on the changes and access to the next/second change of the list
assertThat(changes).change().change()......; // Same as precedent but returnToChange() is implicit
assertThat(changes).change().change(1)......; // The method with the index can be call too
assertThat(changes).change(2).change(0).change(1)......; // Idem
assertThat(changes).change().column().change()......;
assertThat(changes).change().rowAtEndPoint().change(1)......;
assertThat(changes).change().column().value().change()......;
assertThat(changes).change().rowAtEndPoint().value().change(1)......;
// Equivalent to the precedent but with the use of the methods to return to origin
assertThat(changes).change().rowAtEndPoint().value().returnToRow().returnToChange().returnToChanges().change(1)......;
| Modifier and Type | Method and Description |
|---|---|
CH |
change()
Returns assertion methods on the next
Change in the list of changes. |
CH |
change(int index)
Returns assertion methods on the
Change at the index in parameter. |
CH |
changeOfCreation()
Returns assertion methods on the next
Change of creation (ChangeType.CREATION) in the list of changes. |
CH |
changeOfCreation(int index)
Returns assertion methods on the
Change of creation (ChangeType.CREATION) at the index in parameter. |
CH |
changeOfCreationOnTable(String tableName)
Returns assertion methods on the next
Change of creation (ChangeType.CREATION) on the table tableName in the list of changes. |
CH |
changeOfCreationOnTable(String tableName,
int index)
Returns assertion methods on the
Change of creation (ChangeType.CREATION) on the table tableName at the index in parameter. |
CH |
changeOfDeletion()
Returns assertion methods on the next
Change of deletion (ChangeType.DELETION) in the list of changes. |
CH |
changeOfDeletion(int index)
Returns assertion methods on the
Change of deletion (ChangeType.DELETION) at the index in parameter. |
CH |
changeOfDeletionOnTable(String tableName)
Returns assertion methods on the next
Change of deletion (ChangeType.DELETION) on the table tableName in the list of changes. |
CH |
changeOfDeletionOnTable(String tableName,
int index)
Returns assertion methods on the
Change of deletion (ChangeType.DELETION) on the table tableName at the index in parameter. |
CH |
changeOfModification()
Returns assertion methods on the next
Change of modification (ChangeType.MODIFICATION) in the list of changes. |
CH |
changeOfModification(int index)
Returns assertion methods on the
Change of modification (ChangeType.MODIFICATION) at the index in parameter. |
CH |
changeOfModificationOnTable(String tableName)
Returns assertion methods on the next
Change of modification (ChangeType.MODIFICATION) on the table tableName in the list of changes. |
CH |
changeOfModificationOnTable(String tableName,
int index)
Returns assertion methods on the
Change of modification (ChangeType.MODIFICATION) on the table tableName at the index in parameter. |
CH |
changeOnTable(String tableName)
Returns assertion methods on the next
Change on the table tableName in the list of changes. |
CH |
changeOnTable(String tableName,
int index)
|
CH |
changeOnTableWithPks(String tableName,
Object... pksValues)
Returns assertion methods on the
Change on the table tableName corresponding to the primary key in parameter. |
CH change()
Change in the list of changes.Change.AssertJDBException - If there are no more Change in the list of changes.ChangesAssert.change(),
AbstractAssertWithOriginWithChanges.change(),
AbstractAssertWithOriginWithChanges.change(),
AbstractAssertWithOriginWithChanges.change(),
AbstractAssertWithOriginWithChanges.change(),
AbstractAssertWithOriginWithChanges.change()CH change(int index)
Change at the index in parameter.index - The index corresponding to the Change.Change.AssertJDBException - If the index is out of the bounds.ChangesAssert.change(int),
AbstractAssertWithOriginWithChanges.change(int),
AbstractAssertWithOriginWithChanges.change(int),
AbstractAssertWithOriginWithChanges.change(int),
AbstractAssertWithOriginWithChanges.change(int),
AbstractAssertWithOriginWithChanges.change(int)CH changeOfCreation()
Change of creation (ChangeType.CREATION) in the list of changes.Change of creation (ChangeType.CREATION).AssertJDBException - If there are no more Change of creation (ChangeType.CREATION) in the list of changes.ChangesAssert.changeOfCreation(),
AbstractAssertWithOriginWithChanges.changeOfCreation(),
AbstractAssertWithOriginWithChanges.changeOfCreation(),
AbstractAssertWithOriginWithChanges.changeOfCreation(),
AbstractAssertWithOriginWithChanges.changeOfCreation(),
AbstractAssertWithOriginWithChanges.changeOfCreation()CH changeOfCreation(int index)
Change of creation (ChangeType.CREATION) at the index in parameter.index - The index corresponding to the Change of creation (ChangeType.CREATION).Change of creation (ChangeType.CREATION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfCreation(int),
AbstractAssertWithOriginWithChanges.changeOfCreation(int),
AbstractAssertWithOriginWithChanges.changeOfCreation(int),
AbstractAssertWithOriginWithChanges.changeOfCreation(int),
AbstractAssertWithOriginWithChanges.changeOfCreation(int),
AbstractAssertWithOriginWithChanges.changeOfCreation(int)CH changeOfModification()
Change of modification (ChangeType.MODIFICATION) in the list of changes.Change of modification (ChangeType.MODIFICATION).AssertJDBException - If there are no more Change of modification (ChangeType.MODIFICATION) in the list of changes.ChangesAssert.changeOfModification(),
AbstractAssertWithOriginWithChanges.changeOfModification(),
AbstractAssertWithOriginWithChanges.changeOfModification(),
AbstractAssertWithOriginWithChanges.changeOfModification(),
AbstractAssertWithOriginWithChanges.changeOfModification(),
AbstractAssertWithOriginWithChanges.changeOfModification()CH changeOfModification(int index)
Change of modification (ChangeType.MODIFICATION) at the index in parameter.index - The index corresponding to the Change of modification (ChangeType.MODIFICATION).Change of modification (ChangeType.MODIFICATION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfModification(int),
AbstractAssertWithOriginWithChanges.changeOfModification(int),
AbstractAssertWithOriginWithChanges.changeOfModification(int),
AbstractAssertWithOriginWithChanges.changeOfModification(int),
AbstractAssertWithOriginWithChanges.changeOfModification(int),
AbstractAssertWithOriginWithChanges.changeOfModification(int)CH changeOfDeletion()
Change of deletion (ChangeType.DELETION) in the list of changes.Change of deletion (ChangeType.DELETION).AssertJDBException - If there are no more Change of deletion in the list of changes.ChangesAssert.changeOfDeletion(),
AbstractAssertWithOriginWithChanges.changeOfDeletion(),
AbstractAssertWithOriginWithChanges.changeOfDeletion(),
AbstractAssertWithOriginWithChanges.changeOfDeletion(),
AbstractAssertWithOriginWithChanges.changeOfDeletion(),
AbstractAssertWithOriginWithChanges.changeOfDeletion()CH changeOfDeletion(int index)
Change of deletion (ChangeType.DELETION) at the index in parameter.index - The index corresponding to the Change of deletion (ChangeType.DELETION).Change of deletion (ChangeType.DELETION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfDeletion(int),
AbstractAssertWithOriginWithChanges.changeOfDeletion(int),
AbstractAssertWithOriginWithChanges.changeOfDeletion(int),
AbstractAssertWithOriginWithChanges.changeOfDeletion(int),
AbstractAssertWithOriginWithChanges.changeOfDeletion(int),
AbstractAssertWithOriginWithChanges.changeOfDeletion(int)CH changeOnTable(String tableName)
Change on the table tableName in the list of changes.tableName - The table nameChange.AssertJDBException - If there are no more Change on the table in the list of changes.ChangesAssert.changeOnTable(String),
AbstractAssertWithOriginWithChanges.changeOnTable(String),
AbstractAssertWithOriginWithChanges.changeOnTable(String),
AbstractAssertWithOriginWithChanges.changeOnTable(String),
AbstractAssertWithOriginWithChanges.changeOnTable(String),
AbstractAssertWithOriginWithChanges.changeOnTable(String)CH changeOnTable(String tableName, int index)
tableName - The table nameindex - The index corresponding to the Change.Change.AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOnTable(String, int)CH changeOnTableWithPks(String tableName, Object... pksValues)
Change on the table tableName corresponding to the primary key in parameter.tableName - The table namepksValues - The values of the primary key corresponding to the Change.Change.AssertJDBException - If the pksValues is not found.ChangesAssert.changeOnTableWithPks(String, Object...),
AbstractAssertWithOriginWithChanges.changeOnTableWithPks(String, Object...),
AbstractAssertWithOriginWithChanges.changeOnTableWithPks(String, Object...),
AbstractAssertWithOriginWithChanges.changeOnTableWithPks(String, Object...),
AbstractAssertWithOriginWithChanges.changeOnTableWithPks(String, Object...),
AbstractAssertWithOriginWithChanges.changeOnTableWithPks(String, Object...)CH changeOfCreationOnTable(String tableName)
Change of creation (ChangeType.CREATION) on the table tableName in the list of changes.tableName - The table nameChange of creation (ChangeType.CREATION).AssertJDBException - If there are no more Change of creation (ChangeType.CREATION) on the table in the list of changes.ChangesAssert.changeOfCreationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String)CH changeOfCreationOnTable(String tableName, int index)
Change of creation (ChangeType.CREATION) on the table tableName at the index in parameter.tableName - The table nameindex - The index corresponding to the Change of creation (ChangeType.CREATION).Change of creation (ChangeType.CREATION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfCreationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfCreationOnTable(String, int)CH changeOfModificationOnTable(String tableName)
Change of modification (ChangeType.MODIFICATION) on the table tableName in the list of changes.tableName - The table nameChange of modification (ChangeType.MODIFICATION).AssertJDBException - If there are no more Change of modification (ChangeType.MODIFICATION) on the table in the list of changes.ChangesAssert.changeOfModificationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String)CH changeOfModificationOnTable(String tableName, int index)
Change of modification (ChangeType.MODIFICATION) on the table tableName at the index in parameter.tableName - The table nameindex - The index corresponding to the Change of modification (ChangeType.MODIFICATION).Change of modification (ChangeType.MODIFICATION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfModificationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfModificationOnTable(String, int)CH changeOfDeletionOnTable(String tableName)
Change of deletion (ChangeType.DELETION) on the table tableName in the list of changes.tableName - The table nameChange of deletion (ChangeType.DELETION).AssertJDBException - If there are no more Change of deletion (ChangeType.DELETION) on the table in the list of changes.ChangesAssert.changeOfDeletionOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String)CH changeOfDeletionOnTable(String tableName, int index)
Change of deletion (ChangeType.DELETION) on the table tableName at the index in parameter.tableName - The table nameindex - The index corresponding to the Change of deletion (ChangeType.DELETION).Change of deletion (ChangeType.DELETION).AssertJDBException - If the index is out of the bounds.ChangesAssert.changeOfDeletionOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String, int),
AbstractAssertWithOriginWithChanges.changeOfDeletionOnTable(String, int)Copyright © 2015–2017 AssertJ. All rights reserved.