mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10771: DiffContext is now passed around to provide the DB Dialect.
Instead of the Differences being passed around on their own, the DiffContext is able to provide more information -- at present just the Dialect. The dialect can be used to change the way database objects are validated or differenced. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31466 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -74,18 +74,18 @@ public class TableTest extends DbObjectTestBase<Table>
|
||||
public void doDiffTests()
|
||||
{
|
||||
// Check columns
|
||||
inOrder.verify(comparisonUtils).compareCollections(table.getColumns(), otherTable.getColumns(), differences);
|
||||
inOrder.verify(comparisonUtils).compareCollections(table.getColumns(), otherTable.getColumns(), ctx);
|
||||
|
||||
// Check primary key
|
||||
inOrder.verify(primaryKey).diff(otherTable.getPrimaryKey(), differences, Strength.ERROR);
|
||||
inOrder.verify(primaryKey).diff(otherTable.getPrimaryKey(), ctx, Strength.ERROR);
|
||||
|
||||
// Check foreign keys
|
||||
inOrder.verify(comparisonUtils).compareCollections(
|
||||
table.getForeignKeys(), otherTable.getForeignKeys(), differences);
|
||||
table.getForeignKeys(), otherTable.getForeignKeys(), ctx);
|
||||
|
||||
// Check indexes
|
||||
inOrder.verify(comparisonUtils).compareCollections(
|
||||
table.getIndexes(), otherTable.getIndexes(), differences);
|
||||
table.getIndexes(), otherTable.getIndexes(), ctx);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user