@Test public void serialize() { Object object = 9001; assertEquals(String.valueOf(object), POJOHelper.serialize(object)); }
public static String serialize(final Object object) { String result = null; try { result = MAPPER.writeValueAsString(object); } catch (Exception e) { LOG.error("During serialization", e); } return result; }
POJOHelper { public static String serialize(final Object object) { String result = null; try { result = MAPPER.writeValueAsString(object); } catch (Exception e) { LOG.error("During serialization", e); } return result; } }
POJOHelper { public static String serialize(final Object object) { String result = null; try { result = MAPPER.writeValueAsString(object); } catch (Exception e) { LOG.error("During serialization", e); } return result; } private  POJOHelper(); }
POJOHelper { public static String serialize(final Object object) { String result = null; try { result = MAPPER.writeValueAsString(object); } catch (Exception e) { LOG.error("During serialization", e); } return result; } private  POJOHelper(); static String serialize(final Object object); static T deserialize(final String serialized, final Class<T> reference); static T deserialize(final String serialized, final TypeReference<T> reference); }
POJOHelper { public static String serialize(final Object object) { String result = null; try { result = MAPPER.writeValueAsString(object); } catch (Exception e) { LOG.error("During serialization", e); } return result; } private  POJOHelper(); static String serialize(final Object object); static T deserialize(final String serialized, final Class<T> reference); static T deserialize(final String serialized, final TypeReference<T> reference);  }