Revision 19610 trunk/libraries/libDataSourceDBBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/driver/jdbc/Kiko.java
Kiko.java | ||
---|---|---|
15 | 15 |
import org.gvsig.data.datastores.vectorial.driver.shp.fileshp.SHP; |
16 | 16 |
import org.gvsig.data.exception.CloseException; |
17 | 17 |
import org.gvsig.data.exception.InitializeException; |
18 |
import org.gvsig.data.exception.OpenException; |
|
18 | 19 |
import org.gvsig.data.exception.ReadException; |
19 | 20 |
import org.gvsig.data.exception.WriteException; |
20 | 21 |
import org.gvsig.data.vectorial.IFeature; |
... | ... | |
40 | 41 |
org.gvsig.data.datastores.vectorial.driver.Register.selfRegister(); |
41 | 42 |
|
42 | 43 |
DataSourceManager dsm=DataSourceManager.getManager(); |
43 |
File shpfile=new File("c:/prueba.shp");
|
|
44 |
File shpfile= new File(DataStoreTest.class.getResource("data/prueba.dbf").getFile());
|
|
44 | 45 |
|
45 | 46 |
IDriverParameters dp=dsm.createDriverParameters("shp"); |
46 | 47 |
((ShpDriverParameters)dp).setSHPFile(shpfile); |
... | ... | |
64 | 65 |
((IDriverStoreParameters)dsp).setDriverParameters(dp); |
65 | 66 |
IFeatureStore fs=createFeatureStore(dp); |
66 | 67 |
|
67 |
fs.open(); |
|
68 |
try { |
|
69 |
fs.open(); |
|
70 |
} catch (OpenException e2) { |
|
71 |
e2.printStackTrace(); |
|
72 |
throw new RuntimeException(e2); |
|
73 |
} |
|
68 | 74 |
|
69 | 75 |
if (fs.isEditable() && testEdit) { |
70 | 76 |
fs.startEditing(); |
Also available in: Unified diff