|
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 String |
REPORT_DIRECTORY_NAME
Name of the directory to write reports to. |
| Method Summary | |
|---|---|
static TestDataManager |
getInstance(File directory)
Returns the instance of the test data manager for the given directory. |
File |
getTestFile(String filename,
TestCase testCase)
Marks the given file as used and returns the complete file (with directory). |
void |
printUnusedFiles(PrintWriter pw)
Print a report on all files not used. |
void |
printUsedFiles(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 String REPORT_DIRECTORY_NAME
| Method Detail |
|---|
public static TestDataManager getInstance(File directory)
public File getTestFile(String filename,
TestCase testCase)
public void printUnusedFiles(PrintWriter pw)
public void printUsedFiles(PrintWriter pw)
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||