Skip to content

suggest to add more tests for json serializer  #25

@jhpoelen

Description

@jhpoelen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions