Revision 47640 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.csv/src/test/java/org/gvsig/fmap/dal/store/csv/TestCreate.java

View differences:

TestCreate.java
331 331
    }
332 332
    
333 333
    public void testCreateWithoutDALFile() throws Exception {
334
        FeatureStore sourceStore = openSourceStore1();
335
        
336
        createFrom(sourceStore);        
337
        removeDALFile();
338
        
339
        checkTypes(sourceStore.getDefaultFeatureType());
340
        copyFrom(sourceStore, FeatureStore.MODE_APPEND);
341
        removeDALFile();
342
        checkData(sourceStore);
343
        
344
        createFrom(sourceStore);
345
        removeDALFile();
346
        copyFrom(sourceStore, FeatureStore.MODE_FULLEDIT);
347
        removeDALFile();
348
        checkData(sourceStore);
334
        try {
335
            FeatureStore sourceStore = openSourceStore1();
349 336

  
337
            createFrom(sourceStore);        
338
            removeDALFile();
339

  
340
            checkTypes(sourceStore.getDefaultFeatureType());
341
            copyFrom(sourceStore, FeatureStore.MODE_APPEND);
342
            removeDALFile();
343
            checkData(sourceStore);
344

  
345
            createFrom(sourceStore);
346
            removeDALFile();
347
            copyFrom(sourceStore, FeatureStore.MODE_FULLEDIT);
348
            removeDALFile();
349
            checkData(sourceStore);
350
        } catch(Throwable t) {
351
            LOGGER.warn("",t);
352
            throw t;
353
        }
350 354
    }
351 355
    
352 356
    public void testCRLFAndQuotes() throws Exception {

Also available in: Unified diff