From 0c473bf978d5b32e8cf72f86d22d0e1eb1dfe01b Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Mon, 13 Jan 2025 19:48:14 -0800 Subject: [PATCH] ... --- .../dataformat/ion/failing/PolymorphicRoundtripTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ion/src/test/java/tools/jackson/dataformat/ion/failing/PolymorphicRoundtripTest.java b/ion/src/test/java/tools/jackson/dataformat/ion/failing/PolymorphicRoundtripTest.java index eadc96e2f..e10aff18c 100644 --- a/ion/src/test/java/tools/jackson/dataformat/ion/failing/PolymorphicRoundtripTest.java +++ b/ion/src/test/java/tools/jackson/dataformat/ion/failing/PolymorphicRoundtripTest.java @@ -38,6 +38,7 @@ import tools.jackson.dataformat.ion.polymorphism.IonAnnotationIntrospector; import tools.jackson.dataformat.ion.polymorphism.IonAnnotationTypeResolverBuilder; import tools.jackson.dataformat.ion.polymorphism.MultipleTypeIdResolver; +import tools.jackson.dataformat.ion.testutil.failure.JacksonTestFailureExpected; import static org.junit.jupiter.api.Assertions.*; @@ -182,6 +183,7 @@ public void reset() { /********************************************************************** */ + @JacksonTestFailureExpected @Test public void testSimple() throws IOException { Bean original = new Bean("parent_field", new ChildBean("child_field")); @@ -195,6 +197,7 @@ public void testSimple() throws IOException { assertEquals(original.child.someField, deserialized.child.someField); } + @JacksonTestFailureExpected @Test public void testSubclass() throws IOException { IonObjectMapper mapper = IonObjectMapper.builder() @@ -210,6 +213,7 @@ public void testSubclass() throws IOException { assertEquals(((ChildBeanSub) original.child).extraField, ((ChildBeanSub) deserialized.child).extraField); } + @JacksonTestFailureExpected @Test public void testTopLevelPolymorphism() throws IOException { resolveAllTypes = true; @@ -226,6 +230,7 @@ public void testTopLevelPolymorphism() throws IOException { assertEquals(original.child.someField, deserialized.child.someField); } + @JacksonTestFailureExpected @Test public void testSelectivePolymorphism() throws IOException { // preferredTypeId is a crude testing mechanism of choosing among several serialized type ids. @@ -305,6 +310,7 @@ public void testWithDateAsTimestamp() throws IOException { assertEquals(IonType.INT, ionVal.getType(), "Expected date to be serialized into an int"); } + @JacksonTestFailureExpected @Test public void testPolymorphicTypeWithDate() throws IOException{ resolveAllTypes = true;