ALF-7260: unit tests, bug fixes.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31455 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-10-25 08:28:13 +00:00
parent b9c32d6aa5
commit 4ef52e4e72
27 changed files with 1428 additions and 187 deletions

View File

@@ -21,7 +21,7 @@ package org.alfresco.util.schemacomp.model;
import java.util.List;
import org.alfresco.util.schemacomp.Differences;
import org.alfresco.util.schemacomp.SchemaUtils;
import org.alfresco.util.schemacomp.Result.Strength;
/**
* Represents an index on a table.
@@ -40,6 +40,7 @@ public class Index extends AbstractDbObject
{
super(name);
this.columnNames = columnNames;
setNameStrength(Strength.WARN);
}
/**
@@ -105,10 +106,11 @@ public class Index extends AbstractDbObject
return false;
}
@Override
protected void doDiff(DbObject right, Differences differences)
protected void doDiff(DbObject right, Differences differences, Strength strength)
{
Index rightIndex = (Index) right;
SchemaUtils.compareSimpleCollections(columnNames, rightIndex.columnNames, differences);
comparisonUtils.compareSimpleCollections(columnNames, rightIndex.columnNames, differences, strength);
}
}