Package org.apache.lucene.tests.mockfile


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.
  • Classes
    Class
    Description
    Disables actual calls to fsync.
    Adds extra files/subdirectories when directories are created.
    A FilterAsynchronousFileChannel contains another AsynchronousFileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterDirectoryStream contains another DirectoryStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterFileChannel contains another FileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterFileStore contains another FileStore, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterFileSystem contains another FileSystem, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterFileSystemProvider contains another FileSystemProvider, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterInputStream2 contains another InputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterOutputStream2 contains another OutputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterPath contains another Path, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    A FilterSeekableByteChannel contains another SeekableByteChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.
    FileSystem that throws exception if file handles in use exceeds a specified limit
    Base class for tracking file handles.
    FileSystem that tracks open handles.
    Base class for testing mockfilesystems.
    Gives an unpredictable, but deterministic order to directory listings.
    FileSystem that records all major destructive filesystem activities.
    Acts like a virus checker on Windows, where random programs may open the files you just wrote in an unfriendly way preventing deletion (e.g.
    FileSystem that (imperfectly) acts like windows.