@Test public void serialize() { Snapshot snapshot = new Snapshot.Builder().usedHeapSize(42).build(); StringWriter writer = new StringWriter(); this.serializer.serialize(snapshot, writer); String serializedRepresentation = writer.getBuffer().toString(); assertNotNull(serializedRepresentation); assertTrue(serializedRepresentation.contains("42")); }
public void serialize(Snapshot snapshot,Writer writer){ serializeObject(snapshot, writer); }
Serializer { public void serialize(Snapshot snapshot,Writer writer){ serializeObject(snapshot, writer); } }
Serializer { public void serialize(Snapshot snapshot,Writer writer){ serializeObject(snapshot, writer); }  }
Serializer { public void serialize(Snapshot snapshot,Writer writer){ serializeObject(snapshot, writer); }  @PostConstruct void initialize(); void serialize(Snapshot snapshot,Writer writer); void serialize(Escalations escalations,Writer writer); void serialize(Escalation escalation,Writer writer); }
Serializer { public void serialize(Snapshot snapshot,Writer writer){ serializeObject(snapshot, writer); }  @PostConstruct void initialize(); void serialize(Snapshot snapshot,Writer writer); void serialize(Escalations escalations,Writer writer); void serialize(Escalation escalation,Writer writer);  }