|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.tools.TestDocsGenerator
public class TestDocsGenerator
This class converts output XML files generated by SQLUnit using Canoo as the reporter to XHTML which can then be viewed in a browser. This class will recursively trace through all directories looking for SQLUnit XML files, open each file, and extract the test name information from each.
Constructor Summary | |
---|---|
TestDocsGenerator(java.lang.String dirToExamine,
java.lang.String outputDir)
Constructor for GenerateTestInfo. |
Method Summary | |
---|---|
void |
createTestInfoListing()
Create a listing of all tests within each test case |
void |
getDirectoryContents(java.io.File dir)
Obtain a collection of all the files within a specified directory and all sub-directories |
int |
getNumTestCases()
Obtain the number of test cases |
java.lang.String |
getOutputDirectory()
Obtain the output directory as a String. |
java.io.File |
getTestDirectory()
Obtain the test directory as a java.io.File |
static void |
main(java.lang.String[] args)
Main entry point into application |
void |
makeOutputDirectory(java.lang.String outputDirectory)
Makes the output directory if it does not already exist. |
void |
printFileCollection()
Print the entire collection of files. |
void |
terminate()
Perform cleanup functions up termination |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestDocsGenerator(java.lang.String dirToExamine, java.lang.String outputDir)
dirToExamine
- the directory to examineMethod Detail |
---|
public static void main(java.lang.String[] args)
args
- Command Line arguments; use arg[0] to provide absolute path
to directory containing SQLUnit directories and files to be processedpublic void createTestInfoListing()
public void getDirectoryContents(java.io.File dir)
dir
- The specified directroes to retrieve a file collection frompublic void makeOutputDirectory(java.lang.String outputDirectory)
outputDirectory
- the full path name to the output directory.public java.io.File getTestDirectory()
public java.lang.String getOutputDirectory()
public int getNumTestCases()
public void printFileCollection()
public void terminate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |