diff --git a/sdk/src/test/java/io/opentdf/platform/sdk/ManifestTest.java b/sdk/src/test/java/io/opentdf/platform/sdk/ManifestTest.java index ae95f021..7a3a9c77 100644 --- a/sdk/src/test/java/io/opentdf/platform/sdk/ManifestTest.java +++ b/sdk/src/test/java/io/opentdf/platform/sdk/ManifestTest.java @@ -4,6 +4,8 @@ import com.google.gson.Gson; import com.google.gson.GsonBuilder; +import io.opentdf.platform.sdk.Manifest.ManifestDeserializer; + import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.util.List; @@ -63,7 +65,9 @@ void testManifestMarshalAndUnMarshal() { "}"; GsonBuilder gsonBuilder = new GsonBuilder(); - Gson gson = gsonBuilder.setPrettyPrinting().create(); + Gson gson = gsonBuilder.setPrettyPrinting() + .registerTypeAdapter(Manifest.class, new ManifestDeserializer()) + .create(); Manifest manifest = gson.fromJson(kManifestJsonFromTDF, Manifest.class); // Test payload @@ -143,7 +147,9 @@ void testAssertionNull() { "}"; GsonBuilder gsonBuilder = new GsonBuilder(); - Gson gson = gsonBuilder.setPrettyPrinting().create(); + Gson gson = gsonBuilder.setPrettyPrinting() + .registerTypeAdapter(Manifest.class, new ManifestDeserializer()) + .create(); Manifest manifest = gson.fromJson(kManifestJsonFromTDF, Manifest.class); // Test payload for sanity check