createFiles(basedir);
//Setup de las tablas
dsf.registerDataSource("persona", new FileSourceDefinition(new File(basedir + "/src/test/resources/persona.csvf")));
dsf.registerDataSource("sort", new FileSourceDefinition(basedir + "/src/test/resources/sort.csv"));
dsf.registerDataSource("hsqldbpersona", new DBTableSourceDefinition(new DBSource(null, 0, basedir + "/src/test/resources/testdb", "sa", "",
"persona", "jdbc:hsqldb:file")));
dsf.registerDataSource("hsqldbpersonatransactional", new DBTableSourceDefinition(new DBSource(null, 0, basedir + "/src/test/resources/testdb", "sa", "",
"persona", "jdbc:hsqldb:file")));
dsf.registerDataSource("hsqldbapellido", new DBQuerySourceDefinition(new DBSource(null, 0,
basedir + "/src/test/resources/testdb", "sa", "", null, "jdbc:hsqldb:file"), "select apellido from persona"));
dsf.registerDataSource("nulos", new FileSourceDefinition(basedir + "/src/test/resources/nulos.csv"));
dsf.registerDataSource("points0", new SpatialDBTableSourceDefinition(new DBSpatialSource("127.0.0.1", 5432,
"orbiscad", "postgres", "", "points0", "the_geom", "jdbc:postgresql")));
dsf.registerDataSource("pgWithGDBMS", new SpatialDBTableSourceDefinition(new DBSpatialSource("127.0.0.1", 5432,
"orbiscad", "postgres", "", "polygon0", "the_geom", "jdbc:postgresql")));
dsf.registerDataSource("foo", new DBTableSourceDefinition(new DBSource(null, 0, null, null, null, null, "jdbc:foo")));
dsf.registerDataSource("shppuntos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/puntos.shp"));
dsf.registerDataSource("shplineas", new SpatialFileSourceDefinition(basedir + "/src/test/resources/lineas.shp"));
dsf.registerDataSource("shppoligonos", new SpatialFileSourceDefinition(basedir + "/src/test/resources/poligonos.shp"));
dsf.registerDataSource("dxfprueba", new SpatialFileSourceDefinition(basedir + "/src/test/resources/dxfprueba.dxf"));
dsf.registerDataSource("spatialobjectpersona", new SpatialObjectSourceDefinition(new FakeSpatialObjectDriver()));