[Schmitzm-commits] r1351 - trunk/src_junit/schmitzm/geotools/io
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Dec 17 22:07:45 CET 2010
Author: alfonx
Date: 2010-12-17 22:07:44 +0100 (Fri, 17 Dec 2010)
New Revision: 1351
Modified:
trunk/src_junit/schmitzm/geotools/io/GeoImportUtilTest.java
Log:
Modified: trunk/src_junit/schmitzm/geotools/io/GeoImportUtilTest.java
===================================================================
--- trunk/src_junit/schmitzm/geotools/io/GeoImportUtilTest.java 2010-12-17 20:27:53 UTC (rev 1350)
+++ trunk/src_junit/schmitzm/geotools/io/GeoImportUtilTest.java 2010-12-17 21:07:44 UTC (rev 1351)
@@ -22,7 +22,7 @@
public class GeoImportUtilTest extends TestingClass {
@Test
- public void testOpenBorkenQixShapefile1() throws IOException {
+ public void testOpenBrokenQixShapefile1() throws IOException {
FeatureSource<SimpleFeatureType, SimpleFeature> fs = TestingUtil.TestDatasetsVector.lineBrokenQuix
.getFeatureSource();
@@ -32,6 +32,7 @@
try {
while (it.hasNext()) {
SimpleFeature next = it.next();
+ log.info(next);
fail("We expect this to crash with a WARNUNG: Old qix file format; this file format is deprecated; It is strongly recommended to regenerate it in new format.");
}
} catch (NoSuchElementException e) {
@@ -42,12 +43,14 @@
}
@Test
- public void testOpenBorkenQixShapefile2() throws IOException {
+ public void testOpenBrokenQixShapefile2() throws IOException {
DataStore ds = TestingUtil.TestDatasetsVector.lineBrokenQuix
.getDataStore();
final IndexedShapefileDataStore idxShpDs = (IndexedShapefileDataStore) ds;
- assertTrue(GeoImportUtil.isOldBrokenQix(idxShpDs));
+ assertTrue(TestingUtil.TestDatasetsVector.lineBrokenQuix
+ + " is not reported as broken!",
+ GeoImportUtil.isOldBrokenQix(idxShpDs));
idxShpDs.buildQuadTree();
More information about the Schmitzm-commits
mailing list