Skip to content

Commit 0c473bf

Browse files
committed
...
1 parent c60a71e commit 0c473bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ion/src/test/java/tools/jackson/dataformat/ion/failing/PolymorphicRoundtripTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import tools.jackson.dataformat.ion.polymorphism.IonAnnotationIntrospector;
3939
import tools.jackson.dataformat.ion.polymorphism.IonAnnotationTypeResolverBuilder;
4040
import tools.jackson.dataformat.ion.polymorphism.MultipleTypeIdResolver;
41+
import tools.jackson.dataformat.ion.testutil.failure.JacksonTestFailureExpected;
4142

4243
import 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

Comments
 (0)