1
- package com .fasterxml .jackson .databind .ser ;
1
+ package com .fasterxml .jackson .databind .ser . jdk ;
2
2
3
3
import java .io .IOException ;
4
4
import java .util .*;
9
9
import com .fasterxml .jackson .databind .*;
10
10
import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
11
11
12
- public class TestIterable extends BaseMapTest
12
+ public class IterableSerializationTest extends BaseMapTest
13
13
{
14
14
final static class IterableWrapper
15
15
implements Iterable <Integer >
@@ -93,10 +93,10 @@ static class B {
93
93
94
94
static class ASerializer extends JsonSerializer <A > {
95
95
@ Override
96
- public void serialize (A a , JsonGenerator jsonGenerator , SerializerProvider provider ) throws IOException {
97
- jsonGenerator .writeStartArray ();
98
- jsonGenerator .writeString ("Hello world." );
99
- jsonGenerator .writeEndArray ();
96
+ public void serialize (A a , JsonGenerator g , SerializerProvider provider ) throws IOException {
97
+ g .writeStartArray ();
98
+ g .writeString ("Hello world." );
99
+ g .writeEndArray ();
100
100
}
101
101
}
102
102
@@ -110,7 +110,7 @@ static class IntIterable2390 extends IntIterable { }
110
110
/**********************************************************
111
111
*/
112
112
113
- private final ObjectMapper MAPPER = new ObjectMapper ();
113
+ private final ObjectMapper MAPPER = newJsonMapper ();
114
114
115
115
private final ObjectMapper STATIC_MAPPER = jsonMapperBuilder ()
116
116
.enable (MapperFeature .USE_STATIC_TYPING )
0 commit comments