mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11030: Create object graph from real database schema
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31625 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
package org.alfresco.util.schemacomp;
|
||||
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
@@ -31,7 +33,6 @@ import org.alfresco.util.schemacomp.model.Sequence;
|
||||
import org.alfresco.util.schemacomp.model.Table;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Tests for the XMLToSchema class.
|
||||
@@ -89,6 +90,7 @@ public class XMLToSchemaTest
|
||||
|
||||
assertEquals(1, table.getIndexes().size());
|
||||
assertEquals("idx_node_by_id", table.getIndexes().get(0).getName());
|
||||
assertEquals(true, table.getIndexes().get(0).isUnique());
|
||||
assertEquals(2, table.getIndexes().get(0).getColumnNames().size());
|
||||
assertEquals("id", table.getIndexes().get(0).getColumnNames().get(0));
|
||||
assertEquals("nodeRef", table.getIndexes().get(0).getColumnNames().get(1));
|
||||
|
Reference in New Issue
Block a user