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.
  • Field Details

    • m_projectName

      protected String m_projectName
    • m_suiteName

      protected String m_suiteName
    • m_parameters

      protected Map<String,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 Details

    • CustomizedSuite

      private CustomizedSuite(String projectName, String className, Map<String,String> parameters, String annotationType)
      Constructs a CustomizedSuite TODO cquezel JavaDoc.
      Parameters:
      projectName -
      className -
      parameters -
      annotationType -
  • Method Details

    • createContentBuffer

      protected XMLStringBuffer createContentBuffer()
      TODO cquezel JavaDoc
      Returns:
    • getSuiteBuffer

      public XMLStringBuffer getSuiteBuffer()
      TODO cquezel JavaDoc
      Specified by:
      getSuiteBuffer in class LaunchSuite
      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 File save(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(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.