Issue 10929

Add roundtripping tests for factories

10929
Reporter: mdoering
Type: Task
Summary: Add roundtripping tests for factories
Priority: Major
Resolution: Invalid
Status: Closed
Created: 2012-03-09 14:24:27.218
Updated: 2013-12-16 17:50:20.522
Resolved: 2013-12-10 16:25:13.787
        
Description: The registry factories to convert between the persistence model and the api one are sensitive to errors.
Create a roundtrippping test for each of them making sure all values that have been passed in remain the same after a complete roundtrip.

For example create fully populated API Contact, convert it into the persistence contact and then back into the API one. After that make sure the object properties are still the same (not sure if we can actually simply do an Object.equals)]]>
    


Author: kbraak@gbif.org
Comment: Roundtrip test added for Dataset: WritableDataset -> Agent -> Dataset
Created: 2012-03-12 19:45:34.377
Updated: 2012-03-12 19:45:34.377


Author: kbraak@gbif.org
Comment: Roundtrip test added for Organization: WritableOrganization -> Agent -> Organization
Created: 2012-03-12 20:15:14.626
Updated: 2012-03-12 20:15:14.626


Author: kbraak@gbif.org
Comment: Yesterday I also added a roundtrip test for TechnicalInstallation: WritableTechnicalInstallation -> Agent -> TechnicalInstallation
Created: 2012-03-22 15:31:49.719
Updated: 2012-03-22 15:31:49.719


Author: kbraak@gbif.org
Comment: Today I added a roundtrip for the IdentifierFactory. 
Created: 2012-05-24 14:40:57.43
Updated: 2012-05-24 14:40:57.43


Author: kbraak@gbif.org
Comment: Invalid, since it relates to the former Registry version.
Created: 2013-12-10 16:25:13.81
Updated: 2013-12-10 16:25:13.81