Class | Description |
---|---|
BaseDirectoryTestCase |
Base class for per-Directory tests.
|
BaseDirectoryWrapper |
Calls check index on close.
|
BaseLockFactoryTestCase |
Base class for per-LockFactory tests.
|
CorruptingIndexOutput |
Corrupts on bit of a file after close
|
MockDirectoryWrapper |
This is a Directory Wrapper that adds methods
intended to be used only by unit tests.
|
MockDirectoryWrapper.Failure |
Objects that represent fail-able conditions.
|
MockIndexInputWrapper |
Used by MockDirectoryWrapper to create an input stream that
keeps track of when it's been closed.
|
MockIndexOutputWrapper |
Used by MockRAMDirectory to create an output stream that
will throw an IOException on fake disk full, track max
disk space actually used, and maybe throw random
IOExceptions.
|
RawDirectoryWrapper |
Delegates all operations, even optional ones, to the wrapped directory.
|
Enum | Description |
---|---|
MockDirectoryWrapper.Throttling |
Enum for controlling hard disk throttling.
|
Exception | Description |
---|---|
MockDirectoryWrapper.FakeIOException |
Use this when throwing fake
IOException ,
e.g. |
The primary class is MockDirectoryWrapper
, which
wraps any Directory implementation and provides additional checks.
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.