Class TestResultCache

java.lang.Object
com.sun.javatest.TestResultCache

public class TestResultCache extends Object
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.
  • Constructor Details

    • TestResultCache

      public TestResultCache(WorkDirectory workDir, TestResultCache.Observer observer) throws IOException
      Primary constructor for a cache.
      Parameters:
      workDir - the work directory to attach to
      observer - the observer to notify of cache events
      Throws:
      IOException - if an error occurs reading the cache file
  • Method Details

    • getTestsToWrite

      public Collection<TestResult> getTestsToWrite()
      Returns unmodifiable collection of the tests to write.
      Returns:
      unmodifiable collection of the tests to write