You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by Sebastian Nagel <wa...@googlemail.com> on 2014/12/23 14:17:01 UTC
TestGDALParser fails if gdalinfo does not support FITS
Hi,
if gdalinfo is compiled without support of FITS
the test testParseFITS fails:
testParseFITS(org.apache.tika.parser.gdal.TestGDALParser) Time elapsed: 0.206 sec <<< FAILURE!
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertNotNull(Assert.java:621)
at org.junit.Assert.assertNotNull(Assert.java:631)
at org.apache.tika.parser.gdal.TestGDALParser.testParseFITS(TestGDALParser.java:153)
On Ubuntu 14.04 gdalinfo does not seem to support FITS:
% gdalinfo tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits
ERROR 4: `tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits'
not recognised as a supported file format.
The simple solution (for now) is to uninstall gdalinfo.
Then the method canRun() fails and the tests are skipped.
Open a Jira for the problem?
Thanks,
Sebastian
Re: TestGDALParser fails if gdalinfo does not support FITS
Posted by "Mattmann, Chris A (3980)" <ch...@jpl.nasa.gov>.
Hi Seb,
Yes, please open up a JIRA ticket. The right solution I guess is to
update the test to use “assume(..)”
Thanks!
Cheers,
Chris
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Chief Architect
Instrument Software and Science Data Systems Section (398)
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 168-519, Mailstop: 168-527
Email: chris.a.mattmann@nasa.gov
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Associate Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----Original Message-----
From: Sebastian Nagel <wa...@googlemail.com>
Reply-To: "dev@tika.apache.org" <de...@tika.apache.org>
Date: Tuesday, December 23, 2014 at 5:17 AM
To: "dev@tika.apache.org" <de...@tika.apache.org>
Subject: TestGDALParser fails if gdalinfo does not support FITS
>Hi,
>
>if gdalinfo is compiled without support of FITS
>the test testParseFITS fails:
>
>testParseFITS(org.apache.tika.parser.gdal.TestGDALParser) Time elapsed:
>0.206 sec <<< FAILURE!
>java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertNotNull(Assert.java:621)
> at org.junit.Assert.assertNotNull(Assert.java:631)
> at
>org.apache.tika.parser.gdal.TestGDALParser.testParseFITS(TestGDALParser.ja
>va:153)
>
>
>On Ubuntu 14.04 gdalinfo does not seem to support FITS:
> % gdalinfo
>tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits
> ERROR 4:
>`tika-parsers/src/test/resources/test-documents/WFPC2u5780205r_c0fx.fits'
> not recognised as a supported file format.
>
>The simple solution (for now) is to uninstall gdalinfo.
>Then the method canRun() fails and the tests are skipped.
>
>Open a Jira for the problem?
>
>Thanks,
>Sebastian