Revision 30580 branches/v2_0_0_prep/libraries/libFMap_daldb/src-test/org/gvsig/fmap/dal/store/jdbc/JDBCTest.java
JDBCTest.java | ||
---|---|---|
30 | 30 |
*/ |
31 | 31 |
package org.gvsig.fmap.dal.store.jdbc; |
32 | 32 |
|
33 |
import org.cresques.ProjectionLibrary; |
|
34 |
import org.cresques.impl.CresquesCtsLibrary; |
|
35 |
import org.gvsig.fmap.dal.DALDbLibrary; |
|
36 | 33 |
import org.gvsig.fmap.dal.DataStoreParameters; |
37 | 34 |
import org.gvsig.fmap.dal.exception.DataException; |
38 | 35 |
import org.gvsig.fmap.dal.feature.BaseTestFeatureStore; |
39 |
import org.gvsig.fmap.dal.index.spatial.jts.JTSIndexLibrary; |
|
40 |
import org.gvsig.fmap.dal.store.db.DBStoreLibrary; |
|
41 |
import org.gvsig.fmap.geom.impl.DefaultGeometryLibrary; |
|
42 |
import org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary; |
|
36 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
43 | 37 |
|
44 | 38 |
import com.mysql.jdbc.Driver; |
45 | 39 |
|
... | ... | |
54 | 48 |
// FIXME |
55 | 49 |
// ToolsLocator.registerDefaultPersistenceManager(XMLEntityManager.class); |
56 | 50 |
|
51 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
57 | 52 |
|
58 |
DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
59 |
defGeomLib.initialize(); |
|
60 |
|
|
61 |
DefaultGeometryOperationLibrary defGeomOpLib = new DefaultGeometryOperationLibrary(); |
|
62 |
defGeomOpLib.initialize(); |
|
63 |
|
|
64 |
ProjectionLibrary projLib = new ProjectionLibrary(); |
|
65 |
projLib.initialize(); |
|
66 |
|
|
67 |
CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
68 |
cresquesLib.initialize(); |
|
69 |
|
|
70 |
DALDbLibrary libDb = new DALDbLibrary(); |
|
71 |
libDb.initialize(); |
|
72 |
|
|
73 |
DBStoreLibrary libDbStore = new DBStoreLibrary(); |
|
74 |
libDbStore.initialize(); |
|
75 |
|
|
76 |
JDBCLibrary libJDBC = new JDBCLibrary(); |
|
77 |
libJDBC.initialize(); |
|
78 |
|
|
79 |
JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
80 |
jtsIndex.initialize(); |
|
81 |
|
|
82 |
projLib.postInitialize(); |
|
83 |
cresquesLib.postInitialize(); |
|
84 |
defGeomLib.postInitialize(); |
|
85 |
defGeomOpLib.postInitialize(); |
|
86 |
libDb.postInitialize(); |
|
87 |
libDbStore.postInitialize(); |
|
88 |
libJDBC.postInitialize(); |
|
89 |
jtsIndex.postInitialize(); |
|
53 |
// DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary();
|
|
54 |
// defGeomLib.initialize();
|
|
55 |
// |
|
56 |
// DefaultGeometryOperationLibrary defGeomOpLib = new DefaultGeometryOperationLibrary();
|
|
57 |
// defGeomOpLib.initialize();
|
|
58 |
// |
|
59 |
// ProjectionLibrary projLib = new ProjectionLibrary();
|
|
60 |
// projLib.initialize();
|
|
61 |
// |
|
62 |
// CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary();
|
|
63 |
// cresquesLib.initialize();
|
|
64 |
// |
|
65 |
// DALDbLibrary libDb = new DALDbLibrary();
|
|
66 |
// libDb.initialize();
|
|
67 |
// |
|
68 |
// DBStoreLibrary libDbStore = new DBStoreLibrary();
|
|
69 |
// libDbStore.initialize();
|
|
70 |
// |
|
71 |
// JDBCLibrary libJDBC = new JDBCLibrary();
|
|
72 |
// libJDBC.initialize();
|
|
73 |
// |
|
74 |
// JTSIndexLibrary jtsIndex = new JTSIndexLibrary();
|
|
75 |
// jtsIndex.initialize();
|
|
76 |
// |
|
77 |
// projLib.postInitialize();
|
|
78 |
// cresquesLib.postInitialize();
|
|
79 |
// defGeomLib.postInitialize();
|
|
80 |
// defGeomOpLib.postInitialize();
|
|
81 |
// libDb.postInitialize();
|
|
82 |
// libDbStore.postInitialize();
|
|
83 |
// libJDBC.postInitialize();
|
|
84 |
// jtsIndex.postInitialize();
|
|
90 | 85 |
} |
91 | 86 |
|
92 | 87 |
public DataStoreParameters getDefaultDataStoreParameters() |
Also available in: Unified diff