Revision 2725 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/test/java/org/gvsig/vcsgis/lib/impl/Test02Initws.java
Test02Initws.java | ||
---|---|---|
17 | 17 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
18 | 18 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
19 | 19 |
import org.gvsig.fmap.dal.feature.FeatureType; |
20 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
|
20 | 21 |
import org.gvsig.fmap.dal.store.jdbc.JDBCStoreParameters; |
21 | 22 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer; |
22 | 23 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
... | ... | |
57 | 58 |
String testid = "initws"; |
58 | 59 |
VCSGisManager vcsgismanager = VCSGisLocator.getVCSGisManager(); |
59 | 60 |
|
60 |
JDBCServerExplorer server = TestUtils.openServerExplorer("srv-"+testid);
|
|
61 |
JDBCServerExplorerParameters server = TestUtils.getServerExplorerParameters("srv-"+testid);
|
|
61 | 62 |
File wsfile = TestUtils.getFile(FileUtils.getFile("test-dbs","ws-"+testid)); |
62 | 63 |
|
63 | 64 |
int r = vcsgismanager.initRepository(server, null); |
64 | 65 |
assertEquals("initRepository status", 0, r); |
65 | 66 |
|
67 |
TestUtils.h2sql_repository(server); |
|
66 | 68 |
VCSGisRepository repo = vcsgismanager.openRepository(server); |
67 |
TestUtils.h2sql_repository(repo); |
|
68 | 69 |
|
69 | 70 |
r = vcsgismanager.initWorkspace(wsfile, repo, "Test initws", null); |
70 | 71 |
assertEquals("initWorkspace ws status", 0, r); |
Also available in: Unified diff