@Test public void mapping_Array_Serializes_During_Deserialization_And_Returns_Null() throws IOException { when(parser.nextToken()).thenReturn(END_ARRAY); assertThat(underTest.mapArray(parser, context), nullValue()); verify(generator).writeStartArray(); verify(generator).writeEndArray(); }
@Override @Nullable protected Object mapArray(final JsonParser parser, final DeserializationContext context) throws IOException { generator.writeStartArray(); super.mapArray(parser, context); generator.writeEndArray(); return null; }
UntypedObjectDeserializerSerializer extends UntypedObjectDeserializer { @Override @Nullable protected Object mapArray(final JsonParser parser, final DeserializationContext context) throws IOException { generator.writeStartArray(); super.mapArray(parser, context); generator.writeEndArray(); return null; } }
UntypedObjectDeserializerSerializer extends UntypedObjectDeserializer { @Override @Nullable protected Object mapArray(final JsonParser parser, final DeserializationContext context) throws IOException { generator.writeStartArray(); super.mapArray(parser, context); generator.writeEndArray(); return null; } UntypedObjectDeserializerSerializer(final JsonGenerator generator); }
UntypedObjectDeserializerSerializer extends UntypedObjectDeserializer { @Override @Nullable protected Object mapArray(final JsonParser parser, final DeserializationContext context) throws IOException { generator.writeStartArray(); super.mapArray(parser, context); generator.writeEndArray(); return null; } UntypedObjectDeserializerSerializer(final JsonGenerator generator); @Override @Nullable Object deserialize(final JsonParser parser, final DeserializationContext context); }
UntypedObjectDeserializerSerializer extends UntypedObjectDeserializer { @Override @Nullable protected Object mapArray(final JsonParser parser, final DeserializationContext context) throws IOException { generator.writeStartArray(); super.mapArray(parser, context); generator.writeEndArray(); return null; } UntypedObjectDeserializerSerializer(final JsonGenerator generator); @Override @Nullable Object deserialize(final JsonParser parser, final DeserializationContext context);  }