Class XmlWeaver

java.lang.Object
org.testng.xml.XmlWeaver

final class XmlWeaver extends Object
A Utility class that helps represent a XmlSuite and XmlTest as String.
  • Field Details

    • instance

      private static IWeaveXml instance
    • testMode

      private static final boolean testMode
  • Constructor Details

    • XmlWeaver

      private XmlWeaver()
  • Method Details

    • getInstance

      private static IWeaveXml getInstance()
    • instantiateIfRequired

      private static IWeaveXml instantiateIfRequired()
    • getClassName

      private static String getClassName()
    • asXml

      static String asXml(XmlSuite suite)
      Helps represent the contents of XmlSuite as a String.
      Parameters:
      suite - - The XmlSuite that needs to be transformed to a String.
      Returns:
      - The String representation
    • asXml

      static String asXml(XmlTest xmlTest, String indent)
      Helps represent the contents of XmlTest as a String.
      Parameters:
      xmlTest - - The XmlTest that needs to be transformed to a String.
      indent - - The indentation.
      Returns:
      - The String representation
    • attemptDefaultImplementationInstantiation

      private static IWeaveXml attemptDefaultImplementationInstantiation()