org.jmx4odp.junitDiagnosticWorkers
Class SuiteAssembler

java.lang.Object
  extended by TestSuite
      extended by org.jmx4odp.junitDiagnosticWorkers.SuiteAssembler

public class SuiteAssembler
extends TestSuite

This Object will use an XML file to generate a collection of JUnit TestSuite objects. It can access the the XML file by URL, InputStream, or file name. If the null suite() is used, it will look in the launch directiory for a file named TestSuite.xml.

The legal XML has the following rules:


An exmaple of a valid TestSuite.xml would look like
The SuiteAssembler will crawl through the XML and use reflection and introspection to generate all the TextCases, invoke the proper methods prior to running the test, package them in the TestSuites,

Author:
Lucas McGregor

Constructor Summary
SuiteAssembler()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static Test suite()
          Create a TestSuite from the TestSuite.xml file in the local directory
static Test suite(org.w3c.dom.Document doc)
          All the other suite and suiteByXml use this.
static Test suite(java.lang.String fileName)
          Create a TestSuite from the file specified.
static Test suiteByUrl(java.lang.String xmlUrl)
          Create a TestSuite from the XML file located via the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteAssembler

public SuiteAssembler()
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static Test suite()
Create a TestSuite from the TestSuite.xml file in the local directory


suite

public static Test suite(java.lang.String fileName)
Create a TestSuite from the file specified.


suiteByUrl

public static Test suiteByUrl(java.lang.String xmlUrl)
Create a TestSuite from the XML file located via the URL.


suite

public static Test suite(org.w3c.dom.Document doc)
All the other suite and suiteByXml use this. It creates the TestSuite from the actual XML Document object.