Revision 30754 branches/v2_0_0_prep/libraries/libFMap_dalfile/src-test/org/gvsig/fmap/dal/store/dxf/TestDXF.java
TestDXF.java | ||
---|---|---|
33 | 33 |
import org.gvsig.fmap.dal.exception.DataException; |
34 | 34 |
import org.gvsig.fmap.dal.feature.BaseTestFeatureStore; |
35 | 35 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
36 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
37 | 36 |
|
38 | 37 |
public class TestDXF extends BaseTestFeatureStore { |
39 | 38 |
|
40 |
protected boolean testDXFInitialized = false; |
|
41 |
|
|
42 | 39 |
public static final File file_prueba = new File(TestDXF.class.getResource( |
43 | 40 |
"data/prueba.dxf").getFile()); |
44 | 41 |
|
45 |
|
|
46 |
protected void setUp() throws Exception { |
|
47 |
super.setUp(); |
|
48 |
|
|
49 |
if (testDXFInitialized) { |
|
50 |
return; |
|
51 |
} |
|
52 |
|
|
53 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
54 |
|
|
55 |
// DALFileLibrary libFile = new DALFileLibrary(); |
|
56 |
// libFile.initialize(); |
|
57 |
// |
|
58 |
// DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
59 |
// defGeomLib.initialize(); |
|
60 |
// |
|
61 |
// ProjectionLibrary projLib = new ProjectionLibrary(); |
|
62 |
// projLib.initialize(); |
|
63 |
// |
|
64 |
// CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
65 |
// cresquesLib.initialize(); |
|
66 |
// |
|
67 |
// DXFLibrary dxfLib = new DXFLibrary(); |
|
68 |
// dxfLib.initialize(); |
|
69 |
// |
|
70 |
// DXFLegendLibrary dxfLegendLib = new DXFLegendLibrary(); |
|
71 |
// dxfLegendLib.initialize(); |
|
72 |
// |
|
73 |
// JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
74 |
// jtsIndex.initialize(); |
|
75 |
// |
|
76 |
// defGeomLib.postInitialize(); |
|
77 |
// libFile.postInitialize(); |
|
78 |
// projLib.postInitialize(); |
|
79 |
// cresquesLib.postInitialize(); |
|
80 |
// dxfLib.postInitialize(); |
|
81 |
// dxfLegendLib.postInitialize(); |
|
82 |
// jtsIndex.postInitialize(); |
|
83 |
|
|
84 |
|
|
85 |
testDXFInitialized = true; |
|
86 |
} |
|
87 |
|
|
88 | 42 |
/* |
89 | 43 |
* (non-Javadoc) |
90 | 44 |
* |
Also available in: Unified diff