Skip to content

Commit 263276d

Browse files
authored
Minor unit test enhancement (#5490)
1 parent 0d9061f commit 263276d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/tools/jackson/databind/deser/jdk/UntypedDeserializationTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import tools.jackson.databind.testutil.NoCheckSubTypeValidator;
2424

2525
import static org.junit.jupiter.api.Assertions.*;
26+
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
2627

2728
import static tools.jackson.databind.testutil.DatabindTestUtil.*;
2829

@@ -523,6 +524,10 @@ public void testPolymorphicUntypedVanilla() throws IOException
523524
for (int i = 0; i < 100; ++i) {
524525
assertEquals(Integer.valueOf(i), obs[i]);
525526
}
527+
528+
// Finally, true polymorphism
529+
w = rDefault.readValue(a2q("{'value': ['java.util.Date', 123]}"));
530+
assertThat(w.value).isInstanceOf(java.util.Date.class);
526531
}
527532

528533
@Test

0 commit comments

Comments
 (0)