|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.test.TestDataManager
public class TestDataManager
Support class for identifying unused test data files. This class provides a method to access test data files and logs which test cases access which test files. On every access to a file, access statistic for used and unused files are written to "test-tmp".
This class is best used via inheriting from CCSMTestCaseBase
.
Field Summary | |
---|---|
static java.lang.String |
REPORT_DIRECTORY_NAME
Name of the directory to write reports to. |
Method Summary | |
---|---|
static TestDataManager |
getInstance(java.io.File directory)
Returns the instance of the test data manager for the given directory. |
java.io.File |
getTestFile(java.lang.String filename,
TestCase testCase)
Marks the given file as used and returns the complete file (with directory). |
void |
printUnusedFiles(java.io.PrintWriter pw)
Print a report on all files not used. |
void |
printUsedFiles(java.io.PrintWriter pw)
Print a report on all files used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REPORT_DIRECTORY_NAME
Method Detail |
---|
public static TestDataManager getInstance(java.io.File directory)
public java.io.File getTestFile(java.lang.String filename, TestCase testCase)
public void printUnusedFiles(java.io.PrintWriter pw)
public void printUsedFiles(java.io.PrintWriter pw)
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |