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.
-
Class Summary Class Description DisableFsyncFS Disables actual calls to fsync.ExtrasFS Adds extra files/subdirectories when directories are created.FilterAsynchronousFileChannel AFilterAsynchronousFileChannel
contains anotherAsynchronousFileChannel
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterDirectoryStream AFilterDirectoryStream
contains anotherDirectoryStream
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileChannel AFilterFileChannel
contains anotherFileChannel
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileStore AFilterFileStore
contains anotherFileStore
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileSystem AFilterFileSystem
contains anotherFileSystem
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileSystemProvider AFilterFileSystemProvider
contains anotherFileSystemProvider
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterInputStream2 AFilterInputStream2
contains anotherInputStream
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterOutputStream2 AFilterOutputStream2
contains anotherOutputStream
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterPath AFilterPath
contains anotherPath
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterSeekableByteChannel AFilterSeekableByteChannel
contains anotherSeekableByteChannel
, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.HandleLimitFS FileSystem that throws exception if file handles in use exceeds a specified limit.HandleTrackingFS Base class for tracking file handles.LeakFS FileSystem that tracks open handles.MockFileSystemTestCase Base class for testing mockfilesystems.ShuffleFS Gives an unpredictable, but deterministic order to directory listings.VerboseFS FileSystem that records all major destructive filesystem activities.VirusCheckingFS 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.WindowsFS FileSystem that (imperfectly) acts like windows. -
Annotation Types Summary Annotation Type Description HandleLimitFS.MaxOpenHandles An annotation