Revision 24081 branches/v2_0_0_prep/libraries/libFMap_dataFile/src-test/org/gvsig/fmap/data/feature/file/ResourceManagerTest.java
ResourceManagerTest.java | ||
---|---|---|
229 | 229 |
|
230 | 230 |
// Abrimos y cerrarmos uno (ojo los shp son dos recursos el dbf y el shp) |
231 | 231 |
try { |
232 |
shp = dataManager.createDataStore(SHPTest
|
|
232 |
shp = dataManager.createStore(SHPTest |
|
233 | 233 |
.getParams(SHPTest.fileNormal)); |
234 | 234 |
shp.getMetadata(); |
235 | 235 |
} catch (BaseException e) { |
... | ... | |
251 | 251 |
// Abrimos dos veces el mismo y comprobamos que solo |
252 | 252 |
// hay un recurso |
253 | 253 |
try { |
254 |
shp = dataManager.createDataStore(SHPTest
|
|
254 |
shp = dataManager.createStore(SHPTest |
|
255 | 255 |
.getParams(SHPTest.fileNormal)); |
256 | 256 |
shp.getMetadata(); |
257 | 257 |
} catch (BaseException e) { |
... | ... | |
261 | 261 |
|
262 | 262 |
assertEquals(2, closer.getOpenedResources()); |
263 | 263 |
try { |
264 |
shp_bis = dataManager.createDataStore(SHPTest
|
|
264 |
shp_bis = dataManager.createStore(SHPTest |
|
265 | 265 |
.getParams(SHPTest.fileNormal)); |
266 | 266 |
shp_bis.getMetadata(); |
267 | 267 |
} catch (BaseException e) { |
... | ... | |
272 | 272 |
|
273 | 273 |
// Abrimos un shp mas, llamamos al 'ajuste del closer' y comprobamos si deja solo 2 |
274 | 274 |
try { |
275 |
shpNull = dataManager.createDataStore(SHPTest
|
|
275 |
shpNull = dataManager.createStore(SHPTest |
|
276 | 276 |
.getParams(SHPTest.fileGeometryNull)); |
277 | 277 |
shpNull.getMetadata(); |
278 | 278 |
} catch (BaseException e) { |
... | ... | |
371 | 371 |
|
372 | 372 |
// Abrimos y cerrarmos uno (ojo los shp son dos recursos el dbf y el shp) |
373 | 373 |
try { |
374 |
shp = dataManager.createDataStore(SHPTest
|
|
374 |
shp = dataManager.createStore(SHPTest |
|
375 | 375 |
.getParams(SHPTest.fileNormal)); |
376 | 376 |
shp.getMetadata(); |
377 | 377 |
} catch (BaseException e) { |
... | ... | |
390 | 390 |
// Abrimos dos veces el mismo y comprobamos que solo |
391 | 391 |
// hay un recurso |
392 | 392 |
try { |
393 |
shp = dataManager.createDataStore(SHPTest
|
|
393 |
shp = dataManager.createStore(SHPTest |
|
394 | 394 |
.getParams(SHPTest.fileNormal)); |
395 | 395 |
shp.getMetadata(); |
396 | 396 |
} catch (BaseException e) { |
... | ... | |
400 | 400 |
|
401 | 401 |
assertEquals(2, closer.getOpenedResources()); |
402 | 402 |
try { |
403 |
shp_bis = dataManager.createDataStore(SHPTest
|
|
403 |
shp_bis = dataManager.createStore(SHPTest |
|
404 | 404 |
.getParams(SHPTest.fileNormal)); |
405 | 405 |
shp_bis.getMetadata(); |
406 | 406 |
} catch (BaseException e) { |
... | ... | |
411 | 411 |
|
412 | 412 |
// Abrimos un shp mas y comprobamos si deja solo 2 |
413 | 413 |
try { |
414 |
shpNull = dataManager.createDataStore(SHPTest
|
|
414 |
shpNull = dataManager.createStore(SHPTest |
|
415 | 415 |
.getParams(SHPTest.fileGeometryNull)); |
416 | 416 |
shpNull.getMetadata(); |
417 | 417 |
} catch (BaseException e) { |
... | ... | |
472 | 472 |
ResourceManager rManager = DefaultResourceManager.getResourceManager(); |
473 | 473 |
|
474 | 474 |
try { |
475 |
shp = dataManager.createDataStore(SHPTest
|
|
475 |
shp = dataManager.createStore(SHPTest |
|
476 | 476 |
.getParams(SHPTest.fileNormal)); |
477 | 477 |
shp.getMetadata(); |
478 | 478 |
} catch (BaseException e) { |
... | ... | |
537 | 537 |
rManager.startDeadResourceCollectorThread(10); // 1/100 seg |
538 | 538 |
|
539 | 539 |
try { |
540 |
shp = dataManager.createDataStore(SHPTest
|
|
540 |
shp = dataManager.createStore(SHPTest |
|
541 | 541 |
.getParams(SHPTest.fileNormal)); |
542 | 542 |
shp.getMetadata(); |
543 | 543 |
} catch (BaseException e) { |
Also available in: Unified diff