Revision 19481

View differences:

trunk/libraries/libDataSourceBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/driver/DataStoreTest.java
46 46
		IDriverParameters dp=dsm.createDriverParameters("dbf");
47 47
		((DBFDriverParameters)dp).setDBFFile(dbffile);
48 48

  
49
		driverTest(dp,null,null,false);
49
		driverTest(dp,null,null,true);
50 50

  
51 51
		IFeatureStore fs = createFeatureStore(dp);
52 52
		assertNotNull("Can't create Feature Store", fs);
......
80 80

  
81 81
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"ASC NOMBRE");
82 82
		assertEquals(9, fc.size());
83
//		FIXME: falta test
84 83
		it = fc.iterator();
85 84
		count=0;
86 85
		pfeature = (IFeature)it.next();
......
90 89
			v1 = (Comparable)pfeature.get("NOMBRE");
91 90
			v2 = (Comparable)feature.get("NOMBRE");
92 91
			pfeature=feature;
93
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
94 92
			assertTrue("Short error", (v1.compareTo(v1) <= 0));
95 93
			count++;
96 94
		}
......
99 97

  
100 98
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"DESC NOMBRE");
101 99
		assertEquals(9, fc.size());
102
//		FIXME: falta test
103 100
		it = fc.iterator();
104 101

  
105 102
		count=0;
......
110 107
			v1 = (Comparable)pfeature.get("NOMBRE");
111 108
			v2 = (Comparable)feature.get("NOMBRE");
112 109
			pfeature=feature;
113
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
114 110
			assertTrue("Short error", (v1.compareTo(v1) >= 0));
115 111
			count++;
116 112
		}
......
133 129
			v1 = (Comparable)pfeature.get("NOMBRE");
134 130
			v2 = (Comparable)feature.get("NOMBRE");
135 131
			pfeature=feature;
136
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
137 132
			assertTrue("Short error", (v1.compareTo(v1) <= 0));
138 133
			count++;
139 134
		}
......
143 138

  
144 139
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"Tipo,Desc lower(NOMBRE)");
145 140
		assertEquals(9, fc.size());
146
//		FIXME: falta test
147 141
		it = fc.iterator();
148 142
		count=0;
149 143
		pfeature = (IFeature)it.next();
......
154 148
			v1 = (Comparable)((String)pfeature.get("NOMBRE")).toLowerCase();
155 149
			v2 = (Comparable)((String)feature.get("NOMBRE")).toLowerCase();
156 150
			pfeature=feature;
157
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
158 151
			assertTrue("Short error", (v1.compareTo(v2) >= 0));
159 152
			System.out.println(pfeature.getString("NOMBRE"));
160 153
			count++;
......
226 219

  
227 220
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"ASC NOMBRE");
228 221
		assertEquals(9, fc.size());
229
//		FIXME: falta test
230 222
		it = fc.iterator();
231 223
		count=0;
232 224
		pfeature = (IFeature)it.next();
......
244 236

  
245 237
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"DESC NOMBRE");
246 238
		assertEquals(9, fc.size());
247
//		FIXME: falta test
248 239
		it = fc.iterator();
249

  
250 240
		count=0;
251 241
		pfeature = (IFeature)it.next();
252 242
		System.out.println(pfeature.getString("NOMBRE"));
......
256 246
			v1 = (Comparable)pfeature.get("NOMBRE");
257 247
			v2 = (Comparable)feature.get("NOMBRE");
258 248
			pfeature=feature;
259
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
260 249
			assertTrue("Short error", (v1.compareTo(v2) >= 0));
261 250
			System.out.println(pfeature.getString("NOMBRE"));
262 251
			count++;
......
280 269
			v1 = (Comparable)pfeature.get("NOMBRE");
281 270
			v2 = (Comparable)feature.get("NOMBRE");
282 271
			pfeature=feature;
283
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
284 272
			assertTrue("Short error", (v1.compareTo(v2) <= 0));
285 273
			count++;
286 274
		}
......
289 277

  
290 278
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"ASC lower(NOMBRE)");
291 279
		assertEquals(9, fc.size());
292
//		FIXME: falta test
293 280
		it = fc.iterator();
294 281
		count=0;
295 282
		pfeature = (IFeature)it.next();
......
299 286
			v1 = (Comparable)((String)pfeature.get("NOMBRE")).toLowerCase();
300 287
			v2 = (Comparable)((String)feature.get("NOMBRE")).toLowerCase();
301 288
			pfeature=feature;
302
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
303 289
			assertTrue("Short error", (v1.compareTo(v2) <= 0));
304 290
			count++;
305 291
		}
......
309 295

  
310 296
		fc = (IFeatureCollection)fs.getDataCollection(null,null,"Tipo,Desc lower(NOMBRE)");
311 297
		assertEquals(9, fc.size());
312
//		FIXME: falta test
313 298
		it = fc.iterator();
314 299
		count=0;
315 300
		pfeature = (IFeature)it.next();
......
320 305
			v1 = (Comparable)((String)pfeature.get("NOMBRE")).toLowerCase();
321 306
			v2 = (Comparable)((String)feature.get("NOMBRE")).toLowerCase();
322 307
			pfeature=feature;
323
//			System.out.println("OJO!!!! NO SE ESTAN HACINEDO COMPROBACIONES DE ORDEN");
324 308
			assertTrue("Short error", (v1.compareTo(v2) >= 0));
325 309
			System.out.println(pfeature.getString("NOMBRE"));
326 310
			count++;

Also available in: Unified diff