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 AFilterAsynchronousFileChannelcontains anotherAsynchronousFileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterDirectoryStream AFilterDirectoryStreamcontains anotherDirectoryStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileChannel AFilterFileChannelcontains anotherFileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileStore AFilterFileStorecontains anotherFileStore, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileSystem AFilterFileSystemcontains anotherFileSystem, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterFileSystemProvider AFilterFileSystemProvidercontains anotherFileSystemProvider, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterInputStream2 AFilterInputStream2contains anotherInputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterOutputStream2 AFilterOutputStream2contains anotherOutputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterPath AFilterPathcontains anotherPath, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.FilterSeekableByteChannel AFilterSeekableByteChannelcontains 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