ALF-11668: Add position identifiers (same as seq elements in current schema dump tool)

As for current schemadump tool, table columns and primary key column names have order associated with them.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2011-11-24 18:17:41 +00:00
parent f939783d70
commit 462994f3eb
16 changed files with 503 additions and 313 deletions

View File

@@ -41,8 +41,16 @@ public class PrimaryKeyTest extends DbObjectTestBase<PrimaryKey>
@Before
public void setUp()
{
thisPK = new PrimaryKey(null, "this_pk", Arrays.asList("id", "name", "age"));
thatPK = new PrimaryKey(null, "that_pk", Arrays.asList("a", "b"));
thisPK = new PrimaryKey(
null,
"this_pk",
Arrays.asList("id", "name", "age"),
Arrays.asList(2, 1, 3));
thatPK = new PrimaryKey(
null,
"that_pk",
Arrays.asList("a", "b"),
Arrays.asList(1, 2));
}
@Override
@@ -65,6 +73,11 @@ public class PrimaryKeyTest extends DbObjectTestBase<PrimaryKey>
new DbProperty(thatPK, "columnNames"),
ctx,
Strength.ERROR);
inOrder.verify(comparisonUtils).compareSimpleCollections(
new DbProperty(thisPK, "columnOrders"),
new DbProperty(thatPK, "columnOrders"),
ctx,
Strength.ERROR);
}
@Test