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/TestStructureExtractor.java
TestStructureExtractor.java | ||
---|---|---|
3 | 3 |
import java.io.InputStream; |
4 | 4 |
import java.util.ArrayList; |
5 | 5 |
import java.util.List; |
6 |
import java.util.Map; |
|
7 | 6 |
import org.apache.commons.lang3.tuple.ImmutablePair; |
8 | 7 |
import org.apache.commons.lang3.tuple.Pair; |
9 | 8 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
... | ... | |
36 | 35 |
Xml2dbManager manager = new DefaultXml2dbManager(); |
37 | 36 |
|
38 | 37 |
InputStream xml = this.getClass().getResourceAsStream("Declaracion4.xml"); |
39 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null); |
|
38 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null, null);
|
|
40 | 39 |
|
41 | 40 |
List<FeatureType> ftypes = new ArrayList<>(); |
42 | 41 |
for (XMLTableInfo tableInfo : xmlinfo) { |
... | ... | |
113 | 112 |
Xml2dbManager manager = new DefaultXml2dbManager(); |
114 | 113 |
|
115 | 114 |
InputStream xml = this.getClass().getResourceAsStream("r10graf.xml"); |
116 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null); |
|
115 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null, null);
|
|
117 | 116 |
|
118 | 117 |
List<FeatureType> ftypes = new ArrayList<>(); |
119 | 118 |
for (XMLTableInfo tableInfo : xmlinfo) { |
... | ... | |
193 | 192 |
Xml2dbManager manager = new DefaultXml2dbManager(); |
194 | 193 |
|
195 | 194 |
InputStream xml = this.getClass().getResourceAsStream("victimas.xml"); |
196 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null); |
|
195 |
XMLInfo xmlinfo = manager.extractStructure(xml, null, null, null);
|
|
197 | 196 |
|
198 | 197 |
} catch(Throwable t) { |
199 | 198 |
LOGGER.warn("Test testExtractorArena2 failed",t); |
Also available in: Unified diff