diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-11-24 20:49:33 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-11-24 20:49:33 +0100 |
commit | 4ceba0e313d0ee0a24116ecf97081ab054531f1c (patch) | |
tree | 922e51a7e2ce2cbb43121be86a6a2347090c48c0 /vespajlib/src/test/java/com/yahoo/tensor | |
parent | bd3835e628508f679727e15961088edb3fd2706f (diff) |
Move to container core due to OSGI, keep a copy in testutil for use in tests in no OSGI modules.
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/tensor')
-rw-r--r-- | vespajlib/src/test/java/com/yahoo/tensor/serialization/SerializationTestCase.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/tensor/serialization/SerializationTestCase.java b/vespajlib/src/test/java/com/yahoo/tensor/serialization/SerializationTestCase.java index 147cb402cb3..97229d30239 100644 --- a/vespajlib/src/test/java/com/yahoo/tensor/serialization/SerializationTestCase.java +++ b/vespajlib/src/test/java/com/yahoo/tensor/serialization/SerializationTestCase.java @@ -2,11 +2,11 @@ package com.yahoo.tensor.serialization; -import ai.vespa.json.Jackson; import com.fasterxml.jackson.databind.JsonNode; import com.yahoo.io.GrowableByteBuffer; import com.yahoo.tensor.Tensor; import com.yahoo.tensor.TensorType; +import com.yahoo.test.json.Jackson; import org.junit.Before; import org.junit.Test; @@ -45,8 +45,9 @@ public class SerializationTestCase { @Test public void testSerialization() throws IOException { + var mapper = Jackson.mapper(); for (String test : tests) { - JsonNode node = Jackson.mapper().readTree(test); + JsonNode node = mapper.readTree(test); if (node.has("tensor") && node.has("binary")) { System.out.println("Running test: " + test); |