Class XmlStringPrettyFormatter

java.lang.Object
org.assertj.core.util.xml.XmlStringPrettyFormatter

@Deprecated public class XmlStringPrettyFormatter extends Object
Deprecated.
this is an internal utility for isXmlEqualTo(CharSequence) rather than a feature for AssertJ users, therefore its usage is discouraged and no replacement is provided.
Format an XML String with indent = 2 space.

Very much inspired by http://stackoverflow.com/questions/139076/how-to-pretty-print-xml-from-java and http://pastebin.com/XL7932aC

  • Method Details

    • xmlPrettyFormat

      public static String xmlPrettyFormat(String xmlStringToFormat)
      Deprecated.