Revision 30580 branches/v2_0_0_prep/libraries/libFMap_daldb/src-test/org/gvsig/fmap/dal/store/postgresql/TestPostgreSQL.java
TestPostgreSQL.java | ||
---|---|---|
30 | 30 |
*/ |
31 | 31 |
package org.gvsig.fmap.dal.store.postgresql; |
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; |
... | ... | |
42 | 39 |
import org.gvsig.fmap.dal.feature.FeatureStoreTransform; |
43 | 40 |
import org.gvsig.fmap.dal.feature.FeatureType; |
44 | 41 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
45 |
import org.gvsig.fmap.dal.index.spatial.jts.JTSIndexLibrary; |
|
46 |
import org.gvsig.fmap.dal.store.db.DBStoreLibrary; |
|
47 |
import org.gvsig.fmap.dal.store.jdbc.JDBCLibrary; |
|
48 | 42 |
import org.gvsig.fmap.geom.Geometry; |
49 |
import org.gvsig.fmap.geom.impl.DefaultGeometryLibrary; |
|
50 |
import org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary; |
|
51 | 43 |
import org.gvsig.tools.evaluator.Evaluator; |
52 | 44 |
import org.gvsig.tools.evaluator.EvaluatorData; |
53 | 45 |
import org.gvsig.tools.evaluator.EvaluatorException; |
54 | 46 |
import org.gvsig.tools.evaluator.EvaluatorFieldsInfo; |
47 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
|
55 | 48 |
|
56 | 49 |
|
57 | 50 |
|
... | ... | |
68 | 61 |
// FIXME |
69 | 62 |
// ToolsLocator.registerDefaultPersistenceManager(XMLEntityManager.class); |
70 | 63 |
|
71 |
DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
72 |
defGeomLib.initialize(); |
|
73 |
|
|
74 |
DefaultGeometryOperationLibrary defGeomOpLib = new DefaultGeometryOperationLibrary(); |
|
75 |
defGeomOpLib.initialize(); |
|
76 |
|
|
77 |
ProjectionLibrary projLib = new ProjectionLibrary(); |
|
78 |
projLib.initialize(); |
|
79 |
|
|
80 |
CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
81 |
cresquesLib.initialize(); |
|
82 |
|
|
83 |
DALDbLibrary libDb = new DALDbLibrary(); |
|
84 |
libDb.initialize(); |
|
85 |
|
|
86 |
DBStoreLibrary libDbStore = new DBStoreLibrary(); |
|
87 |
libDbStore.initialize(); |
|
88 |
|
|
89 |
JDBCLibrary libJDBC = new JDBCLibrary(); |
|
90 |
libJDBC.initialize(); |
|
91 |
|
|
92 |
PostgreSQLLibrary pgLib = new PostgreSQLLibrary(); |
|
93 |
pgLib.initialize(); |
|
94 |
|
|
95 |
JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
96 |
jtsIndex.initialize(); |
|
97 |
|
|
98 |
projLib.postInitialize(); |
|
99 |
cresquesLib.postInitialize(); |
|
100 |
defGeomLib.postInitialize(); |
|
101 |
defGeomOpLib.postInitialize(); |
|
102 |
libDb.postInitialize(); |
|
103 |
libDbStore.postInitialize(); |
|
104 |
libJDBC.postInitialize(); |
|
105 |
pgLib.postInitialize(); |
|
106 |
jtsIndex.postInitialize(); |
|
64 |
new DefaultLibrariesInitializer().fullInitialize(); |
|
65 |
|
|
66 |
// DefaultGeometryLibrary defGeomLib = new DefaultGeometryLibrary(); |
|
67 |
// defGeomLib.initialize(); |
|
68 |
// |
|
69 |
// DefaultGeometryOperationLibrary defGeomOpLib = new DefaultGeometryOperationLibrary(); |
|
70 |
// defGeomOpLib.initialize(); |
|
71 |
// |
|
72 |
// ProjectionLibrary projLib = new ProjectionLibrary(); |
|
73 |
// projLib.initialize(); |
|
74 |
// |
|
75 |
// CresquesCtsLibrary cresquesLib = new CresquesCtsLibrary(); |
|
76 |
// cresquesLib.initialize(); |
|
77 |
// |
|
78 |
// DALDbLibrary libDb = new DALDbLibrary(); |
|
79 |
// libDb.initialize(); |
|
80 |
// |
|
81 |
// DBStoreLibrary libDbStore = new DBStoreLibrary(); |
|
82 |
// libDbStore.initialize(); |
|
83 |
// |
|
84 |
// JDBCLibrary libJDBC = new JDBCLibrary(); |
|
85 |
// libJDBC.initialize(); |
|
86 |
// |
|
87 |
// PostgreSQLLibrary pgLib = new PostgreSQLLibrary(); |
|
88 |
// pgLib.initialize(); |
|
89 |
// |
|
90 |
// JTSIndexLibrary jtsIndex = new JTSIndexLibrary(); |
|
91 |
// jtsIndex.initialize(); |
|
92 |
// |
|
93 |
// projLib.postInitialize(); |
|
94 |
// cresquesLib.postInitialize(); |
|
95 |
// defGeomLib.postInitialize(); |
|
96 |
// defGeomOpLib.postInitialize(); |
|
97 |
// libDb.postInitialize(); |
|
98 |
// libDbStore.postInitialize(); |
|
99 |
// libJDBC.postInitialize(); |
|
100 |
// pgLib.postInitialize(); |
|
101 |
// jtsIndex.postInitialize(); |
|
107 | 102 |
} |
108 | 103 |
|
109 | 104 |
public DataStoreParameters getDefaultDataStoreParameters() |
Also available in: Unified diff