Package org.testng.xml
Class XmlClass
- java.lang.Object
-
- org.testng.xml.XmlClass
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
clone()
Clone an XmlClass by copying all its components.boolean
equals(Object obj)
Map<String,String>
getAllParameters()
List<String>
getExcludedMethods()
List<XmlInclude>
getIncludedMethods()
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.Map<String,String>
getLocalParameters()
String
getName()
Map<String,String>
getParameters()
Deprecated.UsegetLocalParameters()
orgetAllParameters()
Class<?>
getSupportClass()
int
hashCode()
static String
listToString(List<Integer> invocationNumbers)
boolean
loadClasses()
void
setClass(Class className)
void
setExcludedMethods(List<String> excludedMethods)
void
setIncludedMethods(List<XmlInclude> includedMethods)
void
setIndex(int index)
void
setName(String name)
void
setParameters(Map<String,String> parameters)
void
setXmlTest(XmlTest test)
String
toString()
String
toXml(String indent)
-
-
-
Constructor Detail
-
XmlClass
public XmlClass()
-
XmlClass
public XmlClass(String name)
-
XmlClass
public XmlClass(String name, boolean loadClasses)
-
XmlClass
public XmlClass(Class cls)
-
XmlClass
public XmlClass(Class cls, boolean loadClasses)
-
XmlClass
public XmlClass(String className, int index)
-
XmlClass
public XmlClass(String className, int index, boolean loadClasses)
-
-
Method Detail
-
getSupportClass
public Class<?> getSupportClass()
- Returns:
- Returns the className.
-
setClass
public void setClass(Class className)
- Parameters:
className
- The className to set.
-
setExcludedMethods
public void setExcludedMethods(List<String> excludedMethods)
- Parameters:
excludedMethods
- The excludedMethods to set.
-
getIncludedMethods
public List<XmlInclude> getIncludedMethods()
- Returns:
- Returns the includedMethods.
-
setIncludedMethods
public void setIncludedMethods(List<XmlInclude> includedMethods)
- Parameters:
includedMethods
- The includedMethods to set.
-
getName
public String getName()
- Returns:
- Returns the name.
-
setName
public void setName(String name)
- Parameters:
name
- The name to set.
-
loadClasses
public boolean loadClasses()
- Returns:
- true if the classes need to be loaded.
-
clone
public Object 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.
-
setIndex
public void setIndex(int index)
-
getAllParameters
public Map<String,String> getAllParameters()
- Returns:
- The parameters defined in this test tag and the tags above it.
-
getLocalParameters
public Map<String,String> getLocalParameters()
- Returns:
- The parameters defined in this tag, and only this test tag. To retrieve
the inherited parameters as well, call
getAllParameters()
.
-
getParameters
@Deprecated public Map<String,String> getParameters()
Deprecated.UsegetLocalParameters()
orgetAllParameters()
-
setXmlTest
public void setXmlTest(XmlTest test)
-
-