Package org.testng.xml
Class XmlClass
java.lang.Object
org.testng.xml.XmlClass
- All Implemented Interfaces:
Cloneable
This class describes the tag
<class>
in testng.xml.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class
private List<XmlInclude>
private int
The index of this class in the <test> tagprivate boolean
True if the classes need to be loadedprivate String
private XmlTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone an XmlClass by copying all its components.boolean
int
getIndex()
Note that this attribute does not come from the XML file, it's calculated internally and represents the order in which this class was found in its <test> tag.getName()
Class<?>
int
hashCode()
private void
private void
static String
listToString
(List<Integer> invocationNumbers) private void
boolean
void
void
setExcludedMethods
(List<String> excludedMethods) void
setIncludedMethods
(List<XmlInclude> includedMethods) void
setIndex
(int index) void
void
setParameters
(Map<String, String> parameters) void
setXmlTest
(XmlTest test) toString()
-
Field Details
-
m_includedMethods
-
m_excludedMethods
-
m_name
-
m_class
-
m_index
private int m_indexThe index of this class in the <test> tag -
m_loadClasses
private boolean m_loadClassesTrue if the classes need to be loaded -
m_parameters
-
m_xmlTest
-
-
Constructor Details
-
XmlClass
public XmlClass() -
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
-
Method Details
-
init
-
init
-
loadClass
private void loadClass() -
getSupportClass
- Returns:
- Returns the className.
-
setClass
- Parameters:
className
- The className to set.
-
getExcludedMethods
- Returns:
- Returns the excludedMethods.
-
setExcludedMethods
- Parameters:
excludedMethods
- The excludedMethods to set.
-
getIncludedMethods
- Returns:
- Returns the includedMethods.
-
setIncludedMethods
- Parameters:
includedMethods
- The includedMethods to set.
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
name
- The name to set.
-
loadClasses
public boolean loadClasses()- Returns:
- true if the classes need to be loaded.
-
toString
-
toXml
-
listToString
-
clone
Clone an XmlClass by copying all its components. -
getIndex
public int getIndex()Note that this attribute does not come from the XML file, it's calculated internally and represents the order in which this class was found in its <test> tag. It's used to calculate the ordering of the classes when preserve-order is true.- Returns:
- the value
-
setIndex
public void setIndex(int index) -
hashCode
public int hashCode() -
equals
-
setParameters
-
getAllParameters
- Returns:
- The parameters defined in this test tag and the tags above it.
-
getLocalParameters
- Returns:
- The parameters defined in this tag, and only this test tag. To retrieve the inherited
parameters as well, call
getAllParameters()
.
-
setXmlTest
-