mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-11032: Load file in to object graph
Added facility to load an object graph from an XML input stream. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31568 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -25,6 +25,7 @@ import static org.alfresco.util.schemacomp.SchemaCompTestingUtils.fkeys;
|
||||
import static org.alfresco.util.schemacomp.SchemaCompTestingUtils.indexes;
|
||||
import static org.alfresco.util.schemacomp.SchemaCompTestingUtils.pk;
|
||||
import static org.alfresco.util.schemacomp.SchemaCompTestingUtils.table;
|
||||
import static org.alfresco.util.schemacomp.SchemaCompTestingUtils.sequence;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
@@ -65,7 +66,9 @@ public class SchemaToXMLTest
|
||||
"name VARCHAR2(150)"),
|
||||
pk("pk_node", "id"),
|
||||
fkeys(fk("fk_node_noderef", "nodeRef", "node", "nodeRef")),
|
||||
indexes("idx_node_by_id id nodeRef")) );
|
||||
indexes("idx_node_by_id id nodeRef")));
|
||||
schema.add(sequence("node_seq"));
|
||||
schema.add(sequence("content_seq"));
|
||||
|
||||
SchemaToXML transformer = new SchemaToXML(schema, out);
|
||||
|
||||
|
Reference in New Issue
Block a user