icatproject / icat.server

The ICAT server offering both SOAP and "RESTlike" interfaces to a metadata catalog.
Other
1 stars 5 forks source link

TestLucene fails when using icat-lucene 1.1.1 onwards #264

Closed tomhayter closed 2 years ago

tomhayter commented 2 years ago

In icat-lucene 1.1.1, a bug was fixed concerning searching for Datafiles by date. Only one date field is needed, rather than the two that are provided in the tests in TestLucene.

The two tests that fail when using the most up to date version of icat.lucene (1.1.2) are:

I think this happens because two dates are encoded in the populate method here, when only one is needed: https://github.com/icatproject/icat.server/blob/254e62ad5bbedaac15b96b4c19824d9cd5e0e3e3/src/test/java/org/icatproject/core/manager/TestLucene.java#L566-L567