JavaScript is disabled on your browser.
All Implemented Interfaces:
IWeaveXml
Direct Known Subclasses:
CommentDisabledXmlWeaver
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
The name of the TestNG DTD.
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Helps represent the contents of
XmlSuite
as a String.
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 Details
TESTNG_DTD
private static final String TESTNG_DTD
The name of the TestNG DTD.
See Also:
HTTPS_TESTNG_DTD_URL
private static final String HTTPS_TESTNG_DTD_URL
See Also:
Constructor Details
DefaultXmlWeaver
DefaultXmlWeaver ()
DefaultXmlWeaver
DefaultXmlWeaver (String defaultComment)
Method Details
asXml
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
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