# Package org.apache.lucene.store

Support for testing store mechanisms.

See: Description

- Class Summary
  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 Summary
  Enum | Description
  --- | ---
  MockDirectoryWrapper.Throttling | Enum for controlling hard disk throttling.

- Exception Summary
  Exception | Description
  --- | ---
  MockDirectoryWrapper.FakeIOException | Use this when throwing fake `IOException`, e.g.

## Package org.apache.lucene.store Description

Support for testing store mechanisms.

The primary class is `MockDirectoryWrapper`, which wraps any Directory implementation and provides additional checks.

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.