geosolutions-it / geobatch

Open Source GeoSpatial Processing Simplified
GNU General Public License v3.0
22 stars 19 forks source link

ds2ds Action - ActionTest failure #170

Open eblondel opened 11 years ago

eblondel commented 11 years ago

Hello all,

when building Geobatch with the ds2ds, i get a test failure, apparently related to the test data. See below the issue:


T E S T S

Running it.geosolutions.geobatch.actions.ds2ds.ActionTest log4j:WARN No appenders could be found for logger (it.geosolutions.geobatch.actions.ds2ds.Ds2dsActio n). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 9 avr. 2013 17:43:11 org.geotools.data.shapefile.shp.ShapefileReader ATTENTION: Could not open the .shx file, continuing assuming the .shp file is not sparse java.io.FileNotFoundException: C:\Documents and Settings\Utilisateur\Mes documents\GitHub\geobatch\s rc\actions\ds2ds\target\test-classes\test-data\inputs\wrong.shx (Le fichier spÚcifiÚ est introuvable ) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.(RandomAccessFile.java:212) at org.geotools.data.shapefile.ShpFiles.getReadChannel(ShpFiles.java:831) at org.geotools.data.shapefile.shp.IndexFile.(IndexFile.java:79) at org.geotools.data.shapefile.shp.ShapefileReader.(ShapefileReader.java:245) at org.geotools.data.shapefile.ShapefileDataStore.openShapeReader(ShapefileDataStore.java:59 9) at org.geotools.data.shapefile.ShapefileDataStore.readAttributes(ShapefileDataStore.java:826 ) at org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:784) at org.geotools.data.shapefile.ShapefileDataStore.getSchema(ShapefileDataStore.java:778) at it.geosolutions.geobatch.actions.ds2ds.Ds2dsAction.createSourceDataStore(Ds2dsAction.java :537) at it.geosolutions.geobatch.actions.ds2ds.Ds2dsAction.importFile(Ds2dsAction.java:159) at it.geosolutions.geobatch.actions.ds2ds.Ds2dsAction.execute(Ds2dsAction.java:118) at it.geosolutions.geobatch.actions.ds2ds.ActionTest.executeAction(ActionTest.java:481) at it.geosolutions.geobatch.actions.ds2ds.ActionTest.testActionFailsWithWrongShapefile(Actio nTest.java:297) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirecto ryTestSuite.java:140) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestS uite.java:127) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:34 5) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) 9 avr. 2013 17:43:12 org.geotools.data.shapefile.ShpFiles logCurrentLockers GRAVE: The following locker still has a lock: read on file:/C:/Documents%20and%20Settings/Utilisateu r/Mes%20documents/GitHub/geobatch/src/actions/ds2ds/target/test-classes/test-data/inputs/wrong.shp b y org.geotools.data.shapefile.shp.ShapefileReader Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 42.609 sec <<< FAILURE! Running it.geosolutions.geobatch.actions.ds2ds.ConfigurationTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec Running it.geosolutions.geobatch.actions.ds2ds.AliasRegistrarTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec Running it.geosolutions.geobatch.actions.ds2ds.GeneratorServiceTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec

Results :

Failed tests: tesDataIsImportedWithConfiguredTypeName(it.geosolutions.geobatch.actions.ds2ds.ActionTest)

Tests run: 22, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures.