File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
ion/src/test/java/tools/jackson/dataformat/ion Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 2020
2121import com .fasterxml .jackson .annotation .JsonIgnore ;
2222
23+ import tools .jackson .databind .DeserializationFeature ;
24+
2325import 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]" );
You can’t perform that action at this time.
0 commit comments