3838import tools .jackson .dataformat .ion .polymorphism .IonAnnotationIntrospector ;
3939import tools .jackson .dataformat .ion .polymorphism .IonAnnotationTypeResolverBuilder ;
4040import tools .jackson .dataformat .ion .polymorphism .MultipleTypeIdResolver ;
41+ import tools .jackson .dataformat .ion .testutil .failure .JacksonTestFailureExpected ;
4142
4243import static org .junit .jupiter .api .Assertions .*;
4344
@@ -182,6 +183,7 @@ public void reset() {
182183 /**********************************************************************
183184 */
184185
186+ @ JacksonTestFailureExpected
185187 @ Test
186188 public void testSimple () throws IOException {
187189 Bean original = new Bean ("parent_field" , new ChildBean ("child_field" ));
@@ -195,6 +197,7 @@ public void testSimple() throws IOException {
195197 assertEquals (original .child .someField , deserialized .child .someField );
196198 }
197199
200+ @ JacksonTestFailureExpected
198201 @ Test
199202 public void testSubclass () throws IOException {
200203 IonObjectMapper mapper = IonObjectMapper .builder ()
@@ -210,6 +213,7 @@ public void testSubclass() throws IOException {
210213 assertEquals (((ChildBeanSub ) original .child ).extraField , ((ChildBeanSub ) deserialized .child ).extraField );
211214 }
212215
216+ @ JacksonTestFailureExpected
213217 @ Test
214218 public void testTopLevelPolymorphism () throws IOException {
215219 resolveAllTypes = true ;
@@ -226,6 +230,7 @@ public void testTopLevelPolymorphism() throws IOException {
226230 assertEquals (original .child .someField , deserialized .child .someField );
227231 }
228232
233+ @ JacksonTestFailureExpected
229234 @ Test
230235 public void testSelectivePolymorphism () throws IOException {
231236 // preferredTypeId is a crude testing mechanism of choosing among several serialized type ids.
@@ -305,6 +310,7 @@ public void testWithDateAsTimestamp() throws IOException {
305310 assertEquals (IonType .INT , ionVal .getType (), "Expected date to be serialized into an int" );
306311 }
307312
313+ @ JacksonTestFailureExpected
308314 @ Test
309315 public void testPolymorphicTypeWithDate () throws IOException {
310316 resolveAllTypes = true ;
0 commit comments