gbif/crawler

suggest to add more tests for json serializer

Opened this issue · 0 comments

In trying to figure out how GBIF determines whether records have changed, I stumbled across

Archive archive1 = DwcaTestUtil.openArchive("/dwca/dwca-one-hundred-good-triplets-good-ids.zip");

Given that the existing change detection method uses json serialization in combination with an md5 hash to determine a change, I would suggest to add some test cases that take previously serialized json fragments and compare them to newly serialized json from a dwca. This would check that the underlying json serializer produces json in a consistent way. This would avoid a situation where all gbif records need updating whenever the the json serializer is updated with a change in serialization behavior.