[GeoNetwork-devel] Test failures with compile of geonetwork-core

Hi Developers,

I checked out today from GIT the geonetwork core and run

mvn clean install

and get the following failures:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.fao.geonet.kernel.search.KeywordsSearcherTest
Generating a test RDF file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\testThesaurus.rdf. This might take several minutes.
0................................32..................49.............63............74..........84.........94......100
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info: C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\blah.rdf (The system cannot find the file specified)
Generating a test RDF file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\blah.rdf. This might take several minutes.
0..100
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info: C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\foo.rdf (The system cannot find the file specified)
Generating a test RDF file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\foo.rdf. This might take several minutes.
0..100
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.203 sec
Running org.fao.geonet.kernel.ThesaurusTest
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.282 sec <<< FAILURE!
Running org.fao.geonet.kernel.rdf.QueryBuilderTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.234 sec
Running org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.172 sec <<< FAILURE!
Running org.fao.geonet.kernel.search.LuceneQueryTest
Tests run: 93, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec

Results :

Failed tests:
  testAddElementKeywordBean(org.fao.geonet.kernel.ThesaurusTest)
  keywords(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest)
  keywordsCaseInsensitive(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest)

Tests run: 131, Failures: 3, Errors: 0, Skipped: 0

I then skip the tests -DskipTests and got thru OK. Anyway thought I'd better report this.

FYI my build enviroment is Windows XP and maven 2.2.1

Andrew

I recall having similar problems about a month ago. I haven't tried
again in a while since I have had other work to do. It appeared to be
a bug related to Windows, since a couple of people had no problems
when doing so on a Linux box. I didn't get around to trying that, but
I do know that I had problems on at least two machines - one running
XP, the other running Win7. It seems to have cropped up around the
time of the migration to GIT ...

Elgar Storm

On 30 July 2012 18:09, andrew walsh <awalsh@anonymised.com> wrote:

Hi Developers,

I checked out today from GIT the geonetwork core and run

mvn clean install

and get the following failures:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.fao.geonet.kernel.search.KeywordsSearcherTest
Generating a test RDF
file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\testThesaurus.rdf.
This might take several minutes.
0................................32..................49.............63............74..........84.........94......100
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info:
C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\blah.rdf
(The system cannot find the file specified)
Generating a test RDF
file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\blah.rdf.
This might take several minutes.
0..100
[main] ERROR geonetwork.thesaurus-man - Error getting thesaurus info:
C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\foo.rdf
(The system cannot find the file specified)
Generating a test RDF
file:C:\GNTrunk20120730\geonetwork.trunk\web\target\test-classes\org\fao\geonet\kernel\search\foo.rdf.
This might take several minutes.
0..100
Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.203 sec
Running org.fao.geonet.kernel.ThesaurusTest
Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.282 sec <<<
FAILURE!
Running org.fao.geonet.kernel.rdf.QueryBuilderTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.234 sec
Running org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest
Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 1.172 sec <<<
FAILURE!
Running org.fao.geonet.kernel.search.LuceneQueryTest
Tests run: 93, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec

Results :

Failed tests:
  testAddElementKeywordBean(org.fao.geonet.kernel.ThesaurusTest)
  keywords(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest)
  keywordsCaseInsensitive(org.fao.geonet.kernel.rdf.KeywordQueryBuilderTest)

Tests run: 131, Failures: 3, Errors: 0, Skipped: 0

I then skip the tests -DskipTests and got thru OK. Anyway thought I'd better
report this.

FYI my build enviroment is Windows XP and maven 2.2.1

Andrew

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork