Package org.testng.xml
Class LaunchSuite.CustomizedSuite
- java.lang.Object
-
- org.testng.xml.LaunchSuite
-
- org.testng.xml.LaunchSuite.CustomizedSuite
-
- Direct Known Subclasses:
LaunchSuite.ClassesAndMethodsSuite
,LaunchSuite.ClassListSuite
,LaunchSuite.MethodsSuite
- Enclosing class:
- LaunchSuite
private abstract static class LaunchSuite.CustomizedSuite extends LaunchSuite
CustomizedSuite
TODO cquezel JavaDoc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.testng.xml.LaunchSuite
LaunchSuite.ClassesAndMethodsSuite, LaunchSuite.ClassListSuite, LaunchSuite.ExistingSuite, LaunchSuite.MethodsSuite
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>
m_parameters
The annotation type.protected java.lang.String
m_projectName
private XMLStringBuffer
m_suiteBuffer
The string buffer used to write the XML file.protected java.lang.String
m_suiteName
-
Fields inherited from class org.testng.xml.LaunchSuite
m_temporary
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CustomizedSuite(java.lang.String projectName, java.lang.String className, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String annotationType)
Constructs aCustomizedSuite
TODO cquezel JavaDoc.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected XMLStringBuffer
createContentBuffer()
TODO cquezel JavaDocXMLStringBuffer
getSuiteBuffer()
TODO cquezel JavaDocprotected abstract void
initContentBuffer(XMLStringBuffer suiteBuffer)
Initializes the content of the xml string buffer.java.io.File
save(java.io.File directory)
Saves the suite file in the specified directory and returns the file pathname.protected void
saveSuiteContent(java.io.File file, XMLStringBuffer content)
Saves the content of the string buffer to the specified file.-
Methods inherited from class org.testng.xml.LaunchSuite
isTemporary
-
-
-
-
Field Detail
-
m_projectName
protected java.lang.String m_projectName
-
m_suiteName
protected java.lang.String m_suiteName
-
m_parameters
protected java.util.Map<java.lang.String,java.lang.String> m_parameters
The annotation type. May be null.
-
m_suiteBuffer
private XMLStringBuffer m_suiteBuffer
The string buffer used to write the XML file.
-
-
Constructor Detail
-
CustomizedSuite
private CustomizedSuite(java.lang.String projectName, java.lang.String className, java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String annotationType)
Constructs aCustomizedSuite
TODO cquezel JavaDoc.- Parameters:
projectName
-className
-parameters
-annotationType
-
-
-
Method Detail
-
createContentBuffer
protected XMLStringBuffer createContentBuffer()
TODO cquezel JavaDoc- Returns:
-
getSuiteBuffer
public XMLStringBuffer getSuiteBuffer()
TODO cquezel JavaDoc- Specified by:
getSuiteBuffer
in classLaunchSuite
- Returns:
-
initContentBuffer
protected abstract void initContentBuffer(XMLStringBuffer suiteBuffer)
Initializes the content of the xml string buffer.- Parameters:
suiteBuffer
- the string buffer to initialize.
-
save
public java.io.File save(java.io.File directory)
Saves the suite file in the specified directory and returns the file pathname. This implementation saves the suite to the "temp-testng-customsuite.xml" file in the specified directory.- Specified by:
save
in classLaunchSuite
- Parameters:
directory
- the directory where the suite file is to be saved.- Returns:
- the file pathname of the saved file.
-
saveSuiteContent
protected void saveSuiteContent(java.io.File file, XMLStringBuffer content)
Saves the content of the string buffer to the specified file.- Parameters:
file
- the file to write to.content
- the content to write to the file.
-
-