edu.jhu.ece.iacl.doc
Class DocumentAllTests

java.lang.Object
  extended by edu.jhu.ece.iacl.doc.DocumentAllTests

public class DocumentAllTests
extends java.lang.Object

Automatically runs and documents all test cases

Author:
Blake Lucas

Nested Class Summary
protected static class DocumentAllTests.Assertion
          Assertion description
protected static class DocumentAllTests.ModuleDescription
          Module description.
protected static class DocumentAllTests.TestCase
          Test case description.
 
Field Summary
protected  java.io.File failedDir
          The failed dir.
protected  java.util.ArrayList<java.io.File> failedFiles
          The failed files.
protected  java.util.ArrayList<java.io.File> layoutFiles
          The layout files.
protected  ProcessManager manager
          The manager.
protected  java.io.File outputDirectory
          The output directory.
protected  java.io.File passedDir
          The passed dir.
protected  java.util.ArrayList<java.io.File> passedFiles
          The passed files.
protected  java.io.File testDirectory
          The test directory.
protected  java.io.File verifyDirectory
          The verification directory
 
Constructor Summary
DocumentAllTests(java.io.File testDirectory, java.io.File outputDirectory, java.io.File verifyDirectory)
          Instantiates a new jist test harness.
 
Method Summary
 void complete()
          Complete.
protected  java.util.ArrayList<java.io.File> discoverLayouts(java.io.File startDir)
          Discover layouts.
 void init()
          Inits the.
static void main(java.lang.String[] args)
          The main method.
 DocumentAllTests.TestCase runTest(java.io.File layoutFile, java.io.File resultsDirectory, boolean clean)
          Run test.
 void runTests(boolean runLayouts, boolean clean)
          Run tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layoutFiles

protected java.util.ArrayList<java.io.File> layoutFiles
The layout files.


testDirectory

protected java.io.File testDirectory
The test directory.


outputDirectory

protected java.io.File outputDirectory
The output directory.


verifyDirectory

protected java.io.File verifyDirectory
The verification directory


passedDir

protected java.io.File passedDir
The passed dir.


failedDir

protected java.io.File failedDir
The failed dir.


manager

protected ProcessManager manager
The manager.


failedFiles

protected java.util.ArrayList<java.io.File> failedFiles
The failed files.


passedFiles

protected java.util.ArrayList<java.io.File> passedFiles
The passed files.

Constructor Detail

DocumentAllTests

public DocumentAllTests(java.io.File testDirectory,
                        java.io.File outputDirectory,
                        java.io.File verifyDirectory)
Instantiates a new jist test harness.

Parameters:
testDirectory - the test directory
Method Detail

main

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

Parameters:
args - the arguments

complete

public void complete()
Complete.


discoverLayouts

protected java.util.ArrayList<java.io.File> discoverLayouts(java.io.File startDir)
Discover layouts.

Parameters:
startDir - the start dir
Returns:
the array list< file>

init

public void init()
Inits the.


runTest

public DocumentAllTests.TestCase runTest(java.io.File layoutFile,
                                         java.io.File resultsDirectory,
                                         boolean clean)
Run test.

Parameters:
layoutFile - the layout file

runTests

public void runTests(boolean runLayouts,
                     boolean clean)
Run tests.