Package org.gbif.api
Class SerdeTestUtils
java.lang.Object
org.gbif.api.SerdeTestUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Tdeserialize(String json, Class<T> objClass) static Stringstatic <T> StringDoes a roundtrip from object to JSON and back to another object and then compares the 2 instances and their hashcodes.
-
Method Details
-
testSerDe
Does a roundtrip from object to JSON and back to another object and then compares the 2 instances and their hashcodes.- Returns:
- JSON string of the serialized object
- Throws:
IOException
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
IOException
-