Revision 47611 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/TestCreate.java

View differences:

TestCreate.java
256 256
    
257 257
    
258 258
    public void testCreatePopulateAndCheckData() throws Exception {
259
        FeatureStore sourceStore = TestUtils.openSourceStore1();
260
        JDBCServerExplorer explorer = TestUtils.openServerExplorer(DBNAME);
261
        
262
        createFrom(explorer, sourceStore);        
263
        
264
        checkTypes(explorer, sourceStore.getDefaultFeatureType());
265
        copyFrom(explorer, sourceStore, FeatureStore.MODE_APPEND);
266
        checkData(explorer, sourceStore);
267
        
268
        JDBCStoreParameters params = explorer.get(this.getTargetName());
269
        explorer.remove(params);
270
        
271
        createFrom(explorer, sourceStore);
272
        copyFrom(explorer, sourceStore, FeatureStore.MODE_FULLEDIT);
273
        checkData(explorer, sourceStore);
259
        try {
260
            FeatureStore sourceStore = TestUtils.openSourceStore1();
261
            JDBCServerExplorer explorer = TestUtils.openServerExplorer(DBNAME);
274 262

  
263
            createFrom(explorer, sourceStore);        
264

  
265
            checkTypes(explorer, sourceStore.getDefaultFeatureType());
266
            copyFrom(explorer, sourceStore, FeatureStore.MODE_APPEND);
267
            checkData(explorer, sourceStore);
268

  
269
            JDBCStoreParameters params = explorer.get(this.getTargetName());
270
            explorer.remove(params);
271

  
272
            createFrom(explorer, sourceStore);
273
            copyFrom(explorer, sourceStore, FeatureStore.MODE_FULLEDIT);
274
            checkData(explorer, sourceStore);
275
        } catch (Exception ex) {
276
          LOGGER.warn("", ex);
277
          throw ex;
278
        } 
279

  
275 280
    }
276 281

  
277 282
    public void testFilterByDate() throws Exception {

Also available in: Unified diff