Skip to content

Commit 3704683

Browse files
committed
Fix one Ion test fail wrt FAIL_ON_TRAILING_TOKENS
1 parent 84b6f91 commit 3704683

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ion/src/test/java/tools/jackson/dataformat/ion/DataBindReadTest.java renamed to ion/src/test/java/tools/jackson/dataformat/ion/IonDatabindReadTest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@
2020

2121
import com.fasterxml.jackson.annotation.JsonIgnore;
2222

23+
import tools.jackson.databind.DeserializationFeature;
24+
2325
import static org.junit.jupiter.api.Assertions.*;
2426

25-
public class DataBindReadTest {
26-
static class MyBean {
27+
public class IonDatabindReadTest {
28+
public static class MyBean {
2729
public String a;
2830
public int b;
2931
@JsonIgnore public Object ignore;
3032
public byte[] blob;
3133
}
3234

33-
static class BeanToo { }
35+
public static class BeanToo { }
3436

3537
@Test
3638
public void testSimple() throws Exception
@@ -98,7 +100,9 @@ public void testBasicTypes() throws Exception
98100
@Test
99101
public void testMultipleReads() throws Exception
100102
{
101-
IonObjectMapper m = new IonObjectMapper();
103+
IonObjectMapper m = IonObjectMapper.builder()
104+
.disable(DeserializationFeature.FAIL_ON_TRAILING_TOKENS)
105+
.build();
102106
IonSystem ion = IonSystemBuilder.standard().build();
103107

104108
IonReader reader = ion.newReader("[foo, bar, baz]");

0 commit comments

Comments
 (0)