Interface TestFinderQueue.Observer

Enclosing class:
TestFinderQueue

public static interface TestFinderQueue.Observer
This interface provides a means for TestFinder to report on events that might be of interest as it executes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    A test description that was previously put in the test finder queue has been taken from the queue and passed back to the client caller.
    void
    done(File file)
    A file has been read.
    void
    An error was reported by the test finder while reading a file.
    void
    An error was reported by the test finder while reading a file.
    void
    The queue of tests has been flushed.
    void
    A test description has been found.
    void
    found(File file)
    Another file which needs to be read has been found.
    void
    A test description which was previously found, has been rejected by a test filter, and so has not been put in the queue of tests to be executed.
    void
    reading(File file)
    A file is being read.
  • Method Details

    • found

      void found(File file)
      Another file which needs to be read has been found.
      Parameters:
      file - the file which was found
    • reading

      void reading(File file)
      A file is being read.
      Parameters:
      file - the file being read
    • done

      void done(File file)
      A file has been read.
      Parameters:
      file - the file which was read
    • found

      void found(TestDescription td)
      A test description has been found.
      Parameters:
      td - the test description which was found
    • ignored

      void ignored(TestDescription td, TestFilter f)
      A test description which was previously found, has been rejected by a test filter, and so has not been put in the queue of tests to be executed.
      Parameters:
      td - the test description which was rejected by the filter
      f - the filter which rejected the test
    • done

      void done(TestDescription td)
      A test description that was previously put in the test finder queue has been taken from the queue and passed back to the client caller.
      Parameters:
      td - the test description which was taken from the queue
    • flushed

      void flushed()
      The queue of tests has been flushed.
    • error

      void error(String msg)
      An error was reported by the test finder while reading a file.
      Parameters:
      msg - a detail message describing the error
    • error

      void error(TestDescription td, String msg)
      An error was reported by the test finder while reading a file.
      Parameters:
      td - the test description to which the error applies
      msg - a detail message describing the error