BaseFieldInfoFormatTestCase
Abstract class to do basic tests for fis format. NOTE: This test focuses on the fis impl, nothing else. The stretch goal is for this test to be so thorough in testing a new fis format that if this test passes, then all Lucene tests should also pass. Ie, if there is some bug in a given fis Format that this test fails to catch then this test needs to be improved!
Functions
This test is the best effort at verifying that checkIntegrity doesn't miss any files. It tests that the combination of opening a reader and calling checkIntegrity on it reads all bytes of all files.
Test field infos read that hits exception on close. make sure we get our exception back, no file handle leaks, etc.
Test field infos write that hits exception on close. make sure we get our exception back, no file handle leaks, etc.
Test field infos write that hits exception immediately on open. make sure we get our exception back, no file handle leaks, etc.
Test field infos read that hits exception immediately on open. make sure we get our exception back, no file handle leaks, etc.
Test field infos attributes coming back are not mutable
The purpose of this test is to make sure that bulk merge doesn't accumulate useless data over runs.
Calls close multiple times on closeable codec apis
Test field infos read/write with a single field
Test field infos read/write with random fields, with different values.
Tests exception handling on write and openInput/createOutput