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.
-
ClassDescriptionDisables actual calls to fsync.Adds extra files/subdirectories when directories are created.A
FilterAsynchronousFileChannelcontains anotherAsynchronousFileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterDirectoryStreamcontains anotherDirectoryStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterFileChannelcontains anotherFileChannel, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterFileStorecontains anotherFileStore, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterFileSystemcontains anotherFileSystem, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterFileSystemProvidercontains anotherFileSystemProvider, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterInputStream2contains anotherInputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterOutputStream2contains anotherOutputStream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterPathcontains anotherPath, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality.AFilterSeekableByteChannelcontains anotherSeekableByteChannel, 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.An annotationBase 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.