Top Description Fields Constructors Methods
org.testng.xml

pack-priv final Class XmlWeaver

extends Object
Class Inheritance
Imports
org.testng.TestNGException, org.testng.internal.ClassHelper, .RuntimeBehavior, org.testng.internal.objects.InstanceCreator

A Utility class that helps represent a XmlSuite and XmlTest as String.

Field Summary

Modifier and TypeField and Description
private static IWeaveXml
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

- The String representation
asXml
(XmlSuite
- The XmlSuite that needs to be transformed to a String.
suite
)

Helps represent the contents of XmlSuite as a String.

pack-priv static String

Returns:

- The String representation
asXml
(XmlTest
- The XmlTest that needs to be transformed to a String.
xmlTest
,
String
- The indentation.
indent
)

Helps represent the contents of XmlTest as a String.

private static IWeaveXml
private static String
private static IWeaveXml
private static IWeaveXml
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private static IWeaveXml instance
testModeback to summary
private static final boolean testMode

Constructor Detail

XmlWeaverback to summary
private XmlWeaver()

Method Detail

asXmlback to summary
pack-priv static String asXml(XmlSuite suite)

Helps represent the contents of XmlSuite as a String.

Parameters
suite:XmlSuite

- The XmlSuite that needs to be transformed to a String.

Returns:String

- The String representation

asXmlback to summary
pack-priv static String asXml(XmlTest xmlTest, String indent)

Helps represent the contents of XmlTest as a String.

Parameters
xmlTest:XmlTest

- The XmlTest that needs to be transformed to a String.

indent:String

- The indentation.

Returns:String

- The String representation

attemptDefaultImplementationInstantiationback to summary
private static IWeaveXml attemptDefaultImplementationInstantiation()
getClassNameback to summary
private static String getClassName()
getInstanceback to summary
private static IWeaveXml getInstance()
instantiateIfRequiredback to summary
private static IWeaveXml instantiateIfRequired()