Class LaunchSuite.CustomizedSuite

    • 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 a CustomizedSuite TODO cquezel JavaDoc.
        Parameters:
        projectName -
        className -
        parameters -
        annotationType -
    • Method Detail

      • createContentBuffer

        protected XMLStringBuffer createContentBuffer()
        TODO cquezel JavaDoc
        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 class LaunchSuite
        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.