Revision 47283 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.xml2db/org.gvsig.xml2db.lib/org.gvsig.xml2db.lib.impl/src/test/java/org/gvsig/xml2db/lib/impl/TestCreateDatabase.java
TestCreateDatabase.java | ||
---|---|---|
31 | 31 |
Xml2dbManager manager = new DefaultXml2dbManager(); |
32 | 32 |
|
33 | 33 |
InputStream xml = this.getClass().getResourceAsStream("Declaracion4.xml"); |
34 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null); |
|
34 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null, null);
|
|
35 | 35 |
|
36 | 36 |
File dbfile = utils().getFile(new File("databases/declaracion4")); |
37 |
manager.createDatabase(dbfile, xmlinfo); |
|
37 |
manager.createDatabase(dbfile, xmlinfo, null);
|
|
38 | 38 |
} |
39 | 39 |
|
40 | 40 |
public void testExtractorR10graf() throws Exception { |
41 | 41 |
Xml2dbManager manager = new DefaultXml2dbManager(); |
42 | 42 |
|
43 | 43 |
InputStream xml = this.getClass().getResourceAsStream("r10graf.xml"); |
44 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null); |
|
44 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null, null);
|
|
45 | 45 |
|
46 | 46 |
File dbfile = utils().getFile(new File("databases/r10graf")); |
47 |
manager.createDatabase(dbfile, xmlinfo); |
|
47 |
manager.createDatabase(dbfile, xmlinfo, null);
|
|
48 | 48 |
} |
49 | 49 |
|
50 | 50 |
} |
Also available in: Unified diff