Class ThrowingLeafReaderWrapper

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ThrowingLeafReaderWrapper
    extends FilterLeafReader
    An FilterLeafReader that allows to throw exceptions if certain methods are called on is. This allows to test parts of the system under certain error conditions that would otherwise not be possible.