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.-
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()
static String
listToString
(List<Integer> invocationNumbers) 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()
-
Constructor Details
-
XmlClass
public XmlClass() -
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
XmlClass
-
-
Method Details
-
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
-