Package com.sun.javatest
Class TestResultCache
java.lang.Object
com.sun.javatest.TestResultCache
Class which maintains a cache of the results currently existing inside a
work directory. It is designed to allow the harness to get general
information (name, status) about tests without having to open all the
result files.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface which allows an external class to monitor the cache's activities. -
Constructor Summary
ConstructorsConstructorDescriptionTestResultCache
(WorkDirectory workDir, TestResultCache.Observer observer) Primary constructor for a cache. -
Method Summary
Modifier and TypeMethodDescriptionReturns unmodifiable collection of the tests to write.
-
Constructor Details
-
TestResultCache
Primary constructor for a cache.- Parameters:
workDir
- the work directory to attach toobserver
- the observer to notify of cache events- Throws:
IOException
- if an error occurs reading the cache file
-
-
Method Details
-
getTestsToWrite
Returns unmodifiable collection of the tests to write.- Returns:
- unmodifiable collection of the tests to write
-