Package org.testng
Class ReporterConfig
- java.lang.Object
-
- org.testng.ReporterConfig
-
public class ReporterConfig extends java.lang.Object
Stores the information regarding the configuration of a pluggable report listener. Used also in conjunction with the <reporter> sub-element of the Ant taskNOTE: this class needs to be public. It's used by TestNG Ant task
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReporterConfig.Property
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
m_className
The class name of the reporter listenerprivate java.util.List<ReporterConfig.Property>
m_properties
The properties of the reporter listener
-
Constructor Summary
Constructors Constructor Description ReporterConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(ReporterConfig.Property property)
static ReporterConfig
deserialize(java.lang.String inputString)
java.lang.String
getClassName()
java.util.List<ReporterConfig.Property>
getProperties()
IReporter
newReporterInstance()
Creates a reporter based on the current configurationjava.lang.String
serialize()
void
setClassName(java.lang.String className)
java.lang.String
toString()
-
-
-
Field Detail
-
m_className
private java.lang.String m_className
The class name of the reporter listener
-
m_properties
private final java.util.List<ReporterConfig.Property> m_properties
The properties of the reporter listener
-
-
Method Detail
-
addProperty
public void addProperty(ReporterConfig.Property property)
-
getProperties
public java.util.List<ReporterConfig.Property> getProperties()
-
getClassName
public java.lang.String getClassName()
-
setClassName
public void setClassName(java.lang.String className)
-
serialize
public java.lang.String serialize()
-
deserialize
public static ReporterConfig deserialize(java.lang.String inputString)
-
newReporterInstance
public IReporter newReporterInstance()
Creates a reporter based on the current configuration
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-