public class DBFDriverTests extends TestCase {
public void testOpen() throws Exception {
DataSourceFactory dsf = new DataSourceFactory();
DriverUtilities.copy(new File("src/test/resources/puntos.backup.dbf"), new File("src/test/resources/puntos.dbf"));
AlphanumericDataSource ads = dsf.getAlphanumericDataSource(new File("src/test/resources/puntos.dbf"));
ads.beginTrans();
ads.setDouble(0, 0, 3);
ads.commitTrans();
ads.start();
assertTrue(ads.getDouble(0, 0) == 3);
ads.stop();