SvgDrawVisitor implements IDrawVisitor { @Override public String toString() { if (defaultsWritten) return sb.toString() + " </g>\n</svg>\n"; return sb.toString() + "</svg>\n"; } SvgDrawVisitor(double w, double h, String units); @Override void setFontManager(IFontManager fontManager); @Override void setRendererModel(RendererModel model); void previsit(Collection<? extends IRenderingElement> elements); @Override void visit(final IRenderingElement root); @Override void setTransform(AffineTransform transform); @Override String toString();  }
@Test public void empty() { String empty = new SvgDrawVisitor(50, 50, Depiction.UNITS_MM).toString(); assertThat(empty, is("<?xml version='1.0' encoding='UTF-8'?>\n" + "<!DOCTYPE svg PUBLIC \"- + "<svg version='1.2' xmlns='http: + " <desc>Generated by the Chemistry Development Kit (http: + "</svg>\n")); }