org.testng.xml
Class ClassSuite

java.lang.Object
  extended by org.testng.xml.XmlSuite
      extended by org.testng.xml.ClassSuite
All Implemented Interfaces:
Serializable, Cloneable

public class ClassSuite
extends XmlSuite

This class represents an XML <suite> made up of one test which is made up of <class> elements only. Given a testName "testName" it is equivalent to the following XML <suite>:


    <suite name ="Suite for testName">
       <test name ="testName">
          <classes>
              ...
          </classes>
       </test>
    </suite>
 
This class is typically used to build a XML <suite> from command line class parameters.

Author:
jolly
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.testng.xml.XmlSuite
CONTINUE, DEFAULT_DATA_PROVIDER_THREAD_COUNT, JAVADOC, JAVADOC_ANNOTATION_TYPE, JDK5_ANNOTATION_TYPE, PARALLEL_CLASSES, PARALLEL_METHODS, PARALLEL_NONE, PARALLEL_TESTS, SKIP
 
Constructor Summary
ClassSuite(String testName, Class[] classes)
          Constructs a XmlSuite.
 
Method Summary
 
Methods inherited from class org.testng.xml.XmlSuite
clone, getAllParameters, getAnnotations, getBeanShellExpression, getChildSuites, getConfigFailurePolicy, getDataProviderThreadCount, getExpression, getFileName, getListeners, getMethodSelectors, getName, getObjectFactory, getParallel, getParameter, getParameters, getParentSuite, getSuiteFiles, getTest, getTests, getThreadCount, getTimeOut, getTimeOut, getVerbose, getXmlPackages, isJUnit, setAnnotations, setBeanShellExpression, setConfigFailurePolicy, setDataProviderThreadCount, setDefaultAnnotations, setFileName, setJUnit, setListeners, setMethodSelectors, setName, setObjectFactory, setParallel, setParameters, setParentSuite, setSkipFailedInvocationCounts, setSuiteFiles, setThreadCount, setTimeOut, setVerbose, setXmlPackages, skipFailedInvocationCounts, toString, toXml
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassSuite

public ClassSuite(String testName,
                  Class[] classes)
Constructs a XmlSuite. The suite has the following characteristics:

Parameters:
testName - the suite and inner test name.
classes - the classes making up the suite test.


Copyright © 2010. All Rights Reserved.