Package org.assertj.db.api
Class ChangesAssert
java.lang.Object
org.assertj.db.global.AbstractElement<ChangesAssert>
org.assertj.db.api.AbstractAssert<ChangesAssert>
org.assertj.db.api.AbstractAssertWithOrigin<ChangesAssert,ChangesAssert>
org.assertj.db.api.ChangesAssert
- All Implemented Interfaces:
org.assertj.core.api.Descriptable<ChangesAssert>
,AssertOnNumberOfChanges<ChangesAssert>
,ChangesElement
,Element
,Navigation
,Origin
,OriginWithChanges<ChangesAssert,
,ChangeAssert> ToChange<ChangeAssert>
,ToChanges<ChangesAssert>
public class ChangesAssert
extends AbstractAssertWithOrigin<ChangesAssert,ChangesAssert>
implements ChangesElement, OriginWithChanges<ChangesAssert,ChangeAssert>, AssertOnNumberOfChanges<ChangesAssert>
Assertion methods for
Changes
.- Author:
- Régis Pouiller
-
Field Summary
Fields inherited from class org.assertj.db.api.AbstractAssertWithOrigin
origin
Fields inherited from class org.assertj.db.global.AbstractElement
info, myself
-
Constructor Summary
ConstructorsConstructorDescriptionChangesAssert
(ChangesAssert origin, Changes changes) Constructor.ChangesAssert
(Changes changes) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionchange()
Returns assertion methods on the nextChange
in the list of changes.change
(int index) Returns assertion methods on theChange
at theindex
in parameter.Returns assertion methods on the nextChange
of creation (ChangeType.CREATION
) in the list of changes.changeOfCreation
(int index) Returns assertion methods on theChange
of creation (ChangeType.CREATION
) at theindex
in parameter.changeOfCreationOnTable
(String tableName) Returns assertion methods on the nextChange
of creation (ChangeType.CREATION
) on the tabletableName
in the list of changes.changeOfCreationOnTable
(String tableName, int index) Returns assertion methods on theChange
of creation (ChangeType.CREATION
) on the tabletableName
at theindex
in parameter.Returns assertion methods on the nextChange
of deletion (ChangeType.DELETION
) in the list of changes.changeOfDeletion
(int index) Returns assertion methods on theChange
of deletion (ChangeType.DELETION
) at theindex
in parameter.changeOfDeletionOnTable
(String tableName) Returns assertion methods on the nextChange
of deletion (ChangeType.DELETION
) on the tabletableName
in the list of changes.changeOfDeletionOnTable
(String tableName, int index) Returns assertion methods on theChange
of deletion (ChangeType.DELETION
) on the tabletableName
at theindex
in parameter.Returns assertion methods on the nextChange
of modification (ChangeType.MODIFICATION
) in the list of changes.changeOfModification
(int index) Returns assertion methods on theChange
of modification (ChangeType.MODIFICATION
) at theindex
in parameter.changeOfModificationOnTable
(String tableName) Returns assertion methods on the nextChange
of modification (ChangeType.MODIFICATION
) on the tabletableName
in the list of changes.changeOfModificationOnTable
(String tableName, int index) Returns assertion methods on theChange
of modification (ChangeType.MODIFICATION
) on the tabletableName
at theindex
in parameter.changeOnTable
(String tableName) Returns assertion methods on the nextChange
on the tabletableName
in the list of changes.changeOnTable
(String tableName, int index) changeOnTableWithPks
(String tableName, Object... pksValues) Returns assertion methods on theChange
on the tabletableName
corresponding to the primary key in parameter.hasNumberOfChanges
(int expected) Verifies that the number of changes is equal to the number in parameter.hasNumberOfChangesGreaterThan
(int expected) Verifies that the number of changes is greater than the number in parameter.hasNumberOfChangesGreaterThanOrEqualTo
(int expected) Verifies that the number of changes is greater than or equal to the number in parameter.hasNumberOfChangesLessThan
(int expected) Verifies that the number of changes is less than the number in parameter.hasNumberOfChangesLessThanOrEqualTo
(int expected) Verifies that the number of changes is less than or equal to the number in parameter.ofAll()
Returns an assertion of all the changes.Returns an assertion of the changes of creation (ChangeType.CREATION
).ofCreationOnTable
(String tableName) Returns an assertion of the changes of creation (ChangeType.CREATION
) on a table.Returns an assertion of the changes of deletion (ChangeType.DELETION
).ofDeletionOnTable
(String tableName) Returns an assertion of the changes of deletion (ChangeType.DELETION
) on a table.Returns an assertion of the changes of modification (ChangeType.MODIFICATION
).ofModificationOnTable
(String tableName) Returns an assertion of the changes of modification (ChangeType.MODIFICATION
) on a table.Returns an assertion of the changes on a table.Methods inherited from class org.assertj.db.api.AbstractAssertWithOrigin
returnToOrigin
Methods inherited from class org.assertj.db.global.AbstractElement
as, as, describedAs, describedAs, getInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as
-
Constructor Details
-
Method Details
-
ofAll
Returns an assertion of all the changes.- Specified by:
ofAll
in interfaceToChanges<ChangesAssert>
- Returns:
- An object to make assertions on all the changes.
- See Also:
-
ofCreation
Returns an assertion of the changes of creation (ChangeType.CREATION
).- Specified by:
ofCreation
in interfaceToChanges<ChangesAssert>
- Returns:
- An object to make assertions on the changes of creation (
ChangeType.CREATION
). - See Also:
-
ofModification
Returns an assertion of the changes of modification (ChangeType.MODIFICATION
).- Specified by:
ofModification
in interfaceToChanges<ChangesAssert>
- Returns:
- An object to make assertions on the changes of modification (
ChangeType.MODIFICATION
). - See Also:
-
ofDeletion
Returns an assertion of the changes of deletion (ChangeType.DELETION
).- Specified by:
ofDeletion
in interfaceToChanges<ChangesAssert>
- Returns:
- An object to make assertions on the changes of deletion (
ChangeType.DELETION
). - See Also:
-
ofCreationOnTable
Returns an assertion of the changes of creation (ChangeType.CREATION
) on a table.- Specified by:
ofCreationOnTable
in interfaceToChanges<ChangesAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the changes of creation (
ChangeType.CREATION
) on the table. - See Also:
-
ofModificationOnTable
Returns an assertion of the changes of modification (ChangeType.MODIFICATION
) on a table.- Specified by:
ofModificationOnTable
in interfaceToChanges<ChangesAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the changes of modification (
ChangeType.MODIFICATION
) on the table. - See Also:
-
ofDeletionOnTable
Returns an assertion of the changes of deletion (ChangeType.DELETION
) on a table.- Specified by:
ofDeletionOnTable
in interfaceToChanges<ChangesAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the changes of deletion (
ChangeType.DELETION
) on the table. - See Also:
-
onTable
Returns an assertion of the changes on a table.- Specified by:
onTable
in interfaceToChanges<ChangesAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the changes on the table.
- See Also:
-
change
Returns assertion methods on the nextChange
in the list of changes.- Specified by:
change
in interfaceToChange<ChangeAssert>
- Returns:
- An object to make assertions on the next
Change
. - See Also:
-
change
Returns assertion methods on theChange
at theindex
in parameter.- Specified by:
change
in interfaceToChange<ChangeAssert>
- Parameters:
index
- The index corresponding to theChange
.- Returns:
- An object to make assertions on the
Change
. - See Also:
-
changeOfCreation
Returns assertion methods on the nextChange
of creation (ChangeType.CREATION
) in the list of changes.- Specified by:
changeOfCreation
in interfaceToChange<ChangeAssert>
- Returns:
- An object to make assertions on the next
Change
of creation (ChangeType.CREATION
). - See Also:
-
changeOfCreation
Returns assertion methods on theChange
of creation (ChangeType.CREATION
) at theindex
in parameter.- Specified by:
changeOfCreation
in interfaceToChange<ChangeAssert>
- Parameters:
index
- The index corresponding to theChange
of creation (ChangeType.CREATION
).- Returns:
- An object to make assertions on the
Change
of creation (ChangeType.CREATION
). - See Also:
-
changeOfModification
Returns assertion methods on the nextChange
of modification (ChangeType.MODIFICATION
) in the list of changes.- Specified by:
changeOfModification
in interfaceToChange<ChangeAssert>
- Returns:
- An object to make assertions on the next
Change
of modification (ChangeType.MODIFICATION
). - See Also:
-
changeOfModification
Returns assertion methods on theChange
of modification (ChangeType.MODIFICATION
) at theindex
in parameter.- Specified by:
changeOfModification
in interfaceToChange<ChangeAssert>
- Parameters:
index
- The index corresponding to theChange
of modification (ChangeType.MODIFICATION
).- Returns:
- An object to make assertions on the
Change
of modification (ChangeType.MODIFICATION
). - See Also:
-
changeOfDeletion
Returns assertion methods on the nextChange
of deletion (ChangeType.DELETION
) in the list of changes.- Specified by:
changeOfDeletion
in interfaceToChange<ChangeAssert>
- Returns:
- An object to make assertions on the next
Change
of deletion (ChangeType.DELETION
). - See Also:
-
changeOfDeletion
Returns assertion methods on theChange
of deletion (ChangeType.DELETION
) at theindex
in parameter.- Specified by:
changeOfDeletion
in interfaceToChange<ChangeAssert>
- Parameters:
index
- The index corresponding to theChange
of deletion (ChangeType.DELETION
).- Returns:
- An object to make assertions on the
Change
of deletion (ChangeType.DELETION
). - See Also:
-
changeOnTable
Returns assertion methods on the nextChange
on the tabletableName
in the list of changes.- Specified by:
changeOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the next
Change
. - See Also:
-
changeOnTable
- Specified by:
changeOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table nameindex
- The index corresponding to theChange
.- Returns:
- An object to make assertions on the
Change
. - See Also:
-
changeOnTableWithPks
Returns assertion methods on theChange
on the tabletableName
corresponding to the primary key in parameter.- Specified by:
changeOnTableWithPks
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table namepksValues
- The values of the primary key corresponding to theChange
.- Returns:
- An object to make assertions on the
Change
. - See Also:
-
changeOfCreationOnTable
Returns assertion methods on the nextChange
of creation (ChangeType.CREATION
) on the tabletableName
in the list of changes.- Specified by:
changeOfCreationOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the next
Change
of creation (ChangeType.CREATION
). - See Also:
-
changeOfCreationOnTable
Returns assertion methods on theChange
of creation (ChangeType.CREATION
) on the tabletableName
at theindex
in parameter.- Specified by:
changeOfCreationOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table nameindex
- The index corresponding to theChange
of creation (ChangeType.CREATION
).- Returns:
- An object to make assertions on the
Change
of creation (ChangeType.CREATION
). - See Also:
-
changeOfModificationOnTable
Returns assertion methods on the nextChange
of modification (ChangeType.MODIFICATION
) on the tabletableName
in the list of changes.- Specified by:
changeOfModificationOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the next
Change
of modification (ChangeType.MODIFICATION
). - See Also:
-
changeOfModificationOnTable
Returns assertion methods on theChange
of modification (ChangeType.MODIFICATION
) on the tabletableName
at theindex
in parameter.- Specified by:
changeOfModificationOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table nameindex
- The index corresponding to theChange
of modification (ChangeType.MODIFICATION
).- Returns:
- An object to make assertions on the
Change
of modification (ChangeType.MODIFICATION
). - See Also:
-
changeOfDeletionOnTable
Returns assertion methods on the nextChange
of deletion (ChangeType.DELETION
) on the tabletableName
in the list of changes.- Specified by:
changeOfDeletionOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table name- Returns:
- An object to make assertions on the next
Change
of deletion (ChangeType.DELETION
). - See Also:
-
changeOfDeletionOnTable
Returns assertion methods on theChange
of deletion (ChangeType.DELETION
) on the tabletableName
at theindex
in parameter.- Specified by:
changeOfDeletionOnTable
in interfaceToChange<ChangeAssert>
- Parameters:
tableName
- The table nameindex
- The index corresponding to theChange
of deletion (ChangeType.DELETION
).- Returns:
- An object to make assertions on the
Change
of deletion (ChangeType.DELETION
). - See Also:
-
hasNumberOfChanges
Verifies that the number of changes is equal to the number in parameter.Example where the assertion verifies that there are 8 changes :
assertThat(changes).hasNumberOfChanges(8);
- Specified by:
hasNumberOfChanges
in interfaceAssertOnNumberOfChanges<ChangesAssert>
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- See Also:
-
hasNumberOfChangesGreaterThan
Verifies that the number of changes is greater than the number in parameter.Example where the assertion verifies that there are greater than 8 changes :
assertThat(changes).hasNumberOfChangesGreaterThan(8);
- Specified by:
hasNumberOfChangesGreaterThan
in interfaceAssertOnNumberOfChanges<ChangesAssert>
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- See Also:
-
hasNumberOfChangesLessThan
Verifies that the number of changes is less than the number in parameter.Example where the assertion verifies that there are less than 8 changes :
assertThat(changes).hasNumberOfChangesLessThan(8);
- Specified by:
hasNumberOfChangesLessThan
in interfaceAssertOnNumberOfChanges<ChangesAssert>
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- See Also:
-
hasNumberOfChangesGreaterThanOrEqualTo
Verifies that the number of changes is greater than or equal to the number in parameter.Example where the assertion verifies that there are at least 8 changes :
assertThat(changes).hasNumberOfChangesGreaterThanOrEqualTo(8);
- Specified by:
hasNumberOfChangesGreaterThanOrEqualTo
in interfaceAssertOnNumberOfChanges<ChangesAssert>
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- See Also:
-
hasNumberOfChangesLessThanOrEqualTo
Verifies that the number of changes is less than or equal to the number in parameter.Example where the assertion verifies that there are at most 8 changes :
assertThat(changes).hasNumberOfChangesLessThanOrEqualTo(8);
- Specified by:
hasNumberOfChangesLessThanOrEqualTo
in interfaceAssertOnNumberOfChanges<ChangesAssert>
- Parameters:
expected
- The number to compare to.- Returns:
this
assertion object.- See Also:
-