Class DefaultXmlWeaver

  • All Implemented Interfaces:
    IWeaveXml
    Direct Known Subclasses:
    CommentDisabledXmlWeaver

    class DefaultXmlWeaver
    extends java.lang.Object
    implements IWeaveXml
    This class provides String representation of both XmlSuite and XmlTest but adds an XML comment as the test name and suite name at the end of the corresponding tags.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String defaultComment  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asXml​(XmlSuite xmlSuite)
      Helps represent the contents of XmlSuite as a String.
      java.lang.String asXml​(XmlTest xmlTest, java.lang.String indent)
      Helps represent the contents of XmlTest as a String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • defaultComment

        private final java.lang.String defaultComment
    • Constructor Detail

      • DefaultXmlWeaver

        DefaultXmlWeaver()
      • DefaultXmlWeaver

        DefaultXmlWeaver​(java.lang.String defaultComment)
    • Method Detail

      • asXml

        public java.lang.String asXml​(XmlSuite xmlSuite)
        Description copied from interface: IWeaveXml
        Helps represent the contents of XmlSuite as a String.
        Specified by:
        asXml in interface IWeaveXml
        Parameters:
        xmlSuite - - The XmlSuite that needs to be transformed to a String.
        Returns:
        - The String representation
      • asXml

        public java.lang.String asXml​(XmlTest xmlTest,
                                      java.lang.String indent)
        Description copied from interface: IWeaveXml
        Helps represent the contents of XmlTest as a String.
        Specified by:
        asXml in interface IWeaveXml
        Parameters:
        xmlTest - - The XmlTest that needs to be transformed to a String.
        indent - - The indentation.
        Returns:
        - The String representation