svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.h2spatial / org.gvsig.h2spatial.h2gis132 / org.gvsig.h2spatial.h2gis132.provider / src / test / java / org / gvsig / fmap / dal / store / h2 / TestUtilsH2Spatial.java @ 46102
History | View | Annotate | Download (1.12 KB)
1 |
package org.gvsig.fmap.dal.store.h2; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
4 |
import org.gvsig.fmap.dal.store.jdbc.JDBCServerExplorerParameters; |
5 |
import org.gvsig.fmap.dal.store.jdbc2.AbstractTestUtils; |
6 |
import org.gvsig.fmap.dal.store.jdbc2.JDBCHelper; |
7 |
import org.gvsig.fmap.dal.store.jdbc2.spi.FakeConnectionProvider; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public class TestUtilsH2Spatial extends AbstractTestUtils { |
14 |
|
15 |
@Override
|
16 |
public String getProviderName() { |
17 |
return FeatureStore.H2SPATIAL_PROVIDER_NAME;
|
18 |
} |
19 |
|
20 |
@Override
|
21 |
public String getExpectedsPath() { |
22 |
return "/org/gvsig/fmap/dal/store/h2"; |
23 |
} |
24 |
|
25 |
@Override
|
26 |
public JDBCHelper createJDBCHelper() throws Exception { |
27 |
H2SpatialConnectionParameters params = (H2SpatialConnectionParameters) this.getServerExplorerParameters("fake"); |
28 |
H2SpatialHelper helper = new H2SpatialHelper(params, new FakeConnectionProvider()); |
29 |
return helper;
|
30 |
} |
31 |
|
32 |
@Override
|
33 |
public JDBCServerExplorerParameters getServerExplorerParameters(String dbname) throws Exception { |
34 |
return this.getH2SpatialServerExplorerParameters(dbname); |
35 |
} |
36 |
|
37 |
} |