@Test void testNull() throws Exception { new EntityIdSerializer().serialize(null, jsonGenerator, null); verifyNoInteractions(jsonGenerator); }
@Override public void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value != null) { gen.writeNumber(value.getId()); } }
EntityIdSerializer extends JsonSerializer<EntityId> { @Override public void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value != null) { gen.writeNumber(value.getId()); } } }
EntityIdSerializer extends JsonSerializer<EntityId> { @Override public void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value != null) { gen.writeNumber(value.getId()); } }  }
EntityIdSerializer extends JsonSerializer<EntityId> { @Override public void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value != null) { gen.writeNumber(value.getId()); } }  @Override void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers); }
EntityIdSerializer extends JsonSerializer<EntityId> { @Override public void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers) throws IOException { if (value != null) { gen.writeNumber(value.getId()); } }  @Override void serialize(EntityId value, JsonGenerator gen, SerializerProvider serializers);  }