We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d9061f commit 263276dCopy full SHA for 263276d
src/test/java/tools/jackson/databind/deser/jdk/UntypedDeserializationTest.java
@@ -23,6 +23,7 @@
23
import tools.jackson.databind.testutil.NoCheckSubTypeValidator;
24
25
import static org.junit.jupiter.api.Assertions.*;
26
+import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
27
28
import static tools.jackson.databind.testutil.DatabindTestUtil.*;
29
@@ -523,6 +524,10 @@ public void testPolymorphicUntypedVanilla() throws IOException
523
524
for (int i = 0; i < 100; ++i) {
525
assertEquals(Integer.valueOf(i), obs[i]);
526
}
527
+
528
+ // Finally, true polymorphism
529
+ w = rDefault.readValue(a2q("{'value': ['java.util.Date', 123]}"));
530
+ assertThat(w.value).isInstanceOf(java.util.Date.class);
531
532
533
@Test
0 commit comments