Package org.apache.lucene.tests.mockfile

Support for testing/debugging with virtual filesystems

The primary classes are:

  • LeakFS: Fails tests if they leave open file handles.
  • VerboseFS: Prints destructive filesystem operations to infostream.
  • WindowsFS: Acts like windows.
  • DisableFsyncFS: Makes actual fsync calls a no-op.
  • ExtrasFS: Adds 'bonus' files to directories.
  • ShuffleFS: Directory listings in an unpredictable but deterministic order.