Revision 2381 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.lib/org.gvsig.vcsgis.lib.impl/src/test/java/org/gvsig/cvsgis/lib/impl/TestAdd.java
TestAdd.java | ||
---|---|---|
1 |
package org.gvsig.cvsgis.lib.impl;
|
|
1 |
package org.gvsig.vcsgis.lib.impl;
|
|
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 | 4 |
import junit.framework.TestCase; |
5 | 5 |
import static junit.framework.TestCase.assertEquals; |
6 | 6 |
import org.apache.commons.io.FileUtils; |
7 |
import org.gvsig.cvsgis.client.tables.ChangesTable;
|
|
8 |
import org.gvsig.cvsgis.lib.cvsgis;
|
|
7 |
import org.gvsig.vcsgis.client.tables.ChangesTable;
|
|
8 |
import org.gvsig.vcsgis.lib.vcsgis;
|
|
9 | 9 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
10 | 10 |
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer; |
11 | 11 |
import org.slf4j.Logger; |
12 | 12 |
import org.slf4j.LoggerFactory; |
13 |
import org.gvsig.cvsgis.lib.cvsgisadmin;
|
|
13 |
import org.gvsig.vcsgis.lib.vcsgisadmin;
|
|
14 | 14 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCServerExplorer; |
15 |
import org.gvsig.cvsgis.client.CvsGisWorkspaceEx;
|
|
16 |
import org.gvsig.cvsgis.lib.CvsGisRepository;
|
|
15 |
import org.gvsig.vcsgis.lib.VCSGisRepository;
|
|
16 |
import org.gvsig.vcsgis.client.VCSGisWorkspaceEx;
|
|
17 | 17 |
|
18 | 18 |
public class TestAdd extends TestCase { |
19 | 19 |
|
... | ... | |
41 | 41 |
JDBCServerExplorer server = TestUtils.openServerExplorer("srv-add"); |
42 | 42 |
File wsfile = TestUtils.getFile(FileUtils.getFile("test-dbs","ws-add")); |
43 | 43 |
|
44 |
int r = cvsgisadmin.init(server);
|
|
44 |
int r = vcsgisadmin.init(server);
|
|
45 | 45 |
assertEquals("srv-init status", 0, r); |
46 | 46 |
|
47 |
CvsGisRepository repo = cvsgisadmin.open_repository(server);
|
|
47 |
VCSGisRepository repo = vcsgisadmin.open_repository(server);
|
|
48 | 48 |
TestUtils.h2sql_repository(repo); |
49 | 49 |
|
50 |
r = cvsgis.init_workspace(wsfile, repo, "Test add");
|
|
50 |
r = vcsgis.init_workspace(wsfile, repo, "Test add");
|
|
51 | 51 |
assertEquals("ws-init status", 0, r); |
52 | 52 |
|
53 |
CvsGisWorkspaceEx ws = (CvsGisWorkspaceEx) cvsgis.open_workspace(wsfile);
|
|
53 |
VCSGisWorkspaceEx ws = (VCSGisWorkspaceEx) vcsgis.open_workspace(wsfile);
|
|
54 | 54 |
TestUtils.h2sql_workspace(ws); |
55 | 55 |
|
56 | 56 |
FeatureStore sourceStore = TestUtils.openSourceStore1(); |
Also available in: Unified diff