Skip to content

Commit f5381c1

Browse files
committed
Test refactoring
1 parent 909ff84 commit f5381c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/java/com/fasterxml/jackson/databind/ser/TestIterable.java renamed to src/test/java/com/fasterxml/jackson/databind/ser/jdk/IterableSerializationTest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fasterxml.jackson.databind.ser;
1+
package com.fasterxml.jackson.databind.ser.jdk;
22

33
import java.io.IOException;
44
import java.util.*;
@@ -9,7 +9,7 @@
99
import com.fasterxml.jackson.databind.*;
1010
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
1111

12-
public class TestIterable extends BaseMapTest
12+
public class IterableSerializationTest extends BaseMapTest
1313
{
1414
final static class IterableWrapper
1515
implements Iterable<Integer>
@@ -93,10 +93,10 @@ static class B {
9393

9494
static class ASerializer extends JsonSerializer<A> {
9595
@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();
100100
}
101101
}
102102

@@ -110,7 +110,7 @@ static class IntIterable2390 extends IntIterable { }
110110
/**********************************************************
111111
*/
112112

113-
private final ObjectMapper MAPPER = new ObjectMapper();
113+
private final ObjectMapper MAPPER = newJsonMapper();
114114

115115
private final ObjectMapper STATIC_MAPPER = jsonMapperBuilder()
116116
.enable(MapperFeature.USE_STATIC_TYPING)

0 commit comments

Comments
 (0)