mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user