public abstract class BaseDirectoryTestCase extends LuceneTestCase
LuceneTestCase.AwaitsFix, LuceneTestCase.BadApple, LuceneTestCase.Monster, LuceneTestCase.Nightly, LuceneTestCase.Slow, LuceneTestCase.SuppressCodecs, LuceneTestCase.SuppressFileSystems, LuceneTestCase.SuppressFsync, LuceneTestCase.SuppressReproduceLine, LuceneTestCase.SuppressSysoutChecks, LuceneTestCase.SuppressTempFileChecks, LuceneTestCase.ThrowingRunnable, LuceneTestCase.WeeklyassertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_BADAPPLES, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE| Constructor and Description |
|---|
BaseDirectoryTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Directory |
getDirectory(java.nio.file.Path path)
A subclass returns the Directory to be tested; if it's
an FS-based directory it should point to the specified
path, else it can ignore it.
|
void |
testByte() |
void |
testChecksum() |
void |
testCopyBytes() |
void |
testCopyBytesWithThreads() |
void |
testCopyFrom() |
void |
testCreateOutputForExistingFile() |
void |
testCreateTempOutput() |
void |
testDeleteFile() |
void |
testDetectClose()
Make sure directory throws AlreadyClosedException if
you try to createOutput after closing.
|
void |
testDoubleCloseInput() |
void |
testDoubleCloseOutput() |
void |
testFileExistsInListAfterCreated()
LUCENE-1468: once we create an output, we should see
it in the dir listing.
|
void |
testFsyncDoesntCreateNewFiles() |
void |
testIllegalEOF() |
void |
testIndexOutputToString() |
void |
testInt() |
void |
testLargeWrites()
This test that writes larger than the size of the buffer output
will correctly increment the file pointer.
|
void |
testListAllIsSorted() |
void |
testLong() |
void |
testMapOfStrings() |
void |
testNoDir() |
void |
testPendingDeletions() |
void |
testRandomByte() |
void |
testRandomInt() |
void |
testRandomLong() |
void |
testRandomShort() |
void |
testRename() |
void |
testSeekBeyondEndOfFile() |
void |
testSeekPastEOF() |
void |
testSeekToEndOfFile() |
void |
testSeekToEOFThenBack() |
void |
testSetOfStrings() |
void |
testShort() |
void |
testSliceOfSlice()
try to stress slices of slices
|
void |
testSliceOutOfBounds() |
void |
testString() |
void |
testThreadSafetyInListAll() |
void |
testVInt() |
void |
testVLong() |
void |
testZInt() |
void |
testZLong() |
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertFieldsEquals, assertFieldStatisticsEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, assumeWorkingMMapOnWindows, atLeast, atLeast, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, expectThrows, expectThrows, expectThrows, expectThrowsAnyOf, expectThrowsAnyOf, getBaseTempDirForTestClass, getDataInputStream, getDataPath, getOnlyLeafReader, getTestClass, getTestName, hasWorkingMMapOnWindows, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, restoreSpins, runWithRestrictedPermissions, setIndexWriterMaxDocs, setUp, setupCPUCoreCount, setupSpins, slowFileExists, tearDown, usually, usually, wrapReaderassertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, failprotected abstract Directory getDirectory(java.nio.file.Path path) throws java.io.IOException
java.io.IOExceptionpublic void testCopyFrom()
throws java.lang.Exception
java.lang.Exceptionpublic void testRename()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteFile()
throws java.lang.Exception
java.lang.Exceptionpublic void testByte()
throws java.lang.Exception
java.lang.Exceptionpublic void testShort()
throws java.lang.Exception
java.lang.Exceptionpublic void testInt()
throws java.lang.Exception
java.lang.Exceptionpublic void testLong()
throws java.lang.Exception
java.lang.Exceptionpublic void testString()
throws java.lang.Exception
java.lang.Exceptionpublic void testVInt()
throws java.lang.Exception
java.lang.Exceptionpublic void testVLong()
throws java.lang.Exception
java.lang.Exceptionpublic void testZInt()
throws java.lang.Exception
java.lang.Exceptionpublic void testZLong()
throws java.lang.Exception
java.lang.Exceptionpublic void testSetOfStrings()
throws java.lang.Exception
java.lang.Exceptionpublic void testMapOfStrings()
throws java.lang.Exception
java.lang.Exceptionpublic void testChecksum()
throws java.lang.Exception
java.lang.Exceptionpublic void testDetectClose()
throws java.lang.Throwable
java.lang.Throwablepublic void testThreadSafetyInListAll()
throws java.lang.Exception
java.lang.Exceptionpublic void testFileExistsInListAfterCreated()
throws java.io.IOException
java.io.IOExceptionpublic void testSeekToEOFThenBack()
throws java.lang.Exception
java.lang.Exceptionpublic void testIllegalEOF()
throws java.lang.Exception
java.lang.Exceptionpublic void testSeekPastEOF()
throws java.lang.Exception
java.lang.Exceptionpublic void testSliceOutOfBounds()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoDir()
throws java.lang.Throwable
java.lang.Throwablepublic void testCopyBytes()
throws java.lang.Exception
java.lang.Exceptionpublic void testCopyBytesWithThreads()
throws java.lang.Exception
java.lang.Exceptionpublic void testFsyncDoesntCreateNewFiles()
throws java.lang.Exception
java.lang.Exceptionpublic void testRandomLong()
throws java.lang.Exception
java.lang.Exceptionpublic void testRandomInt()
throws java.lang.Exception
java.lang.Exceptionpublic void testRandomShort()
throws java.lang.Exception
java.lang.Exceptionpublic void testRandomByte()
throws java.lang.Exception
java.lang.Exceptionpublic void testSliceOfSlice()
throws java.lang.Exception
java.lang.Exceptionpublic void testLargeWrites()
throws java.io.IOException
java.io.IOExceptionpublic void testIndexOutputToString()
throws java.lang.Throwable
java.lang.Throwablepublic void testDoubleCloseOutput()
throws java.lang.Throwable
java.lang.Throwablepublic void testDoubleCloseInput()
throws java.lang.Throwable
java.lang.Throwablepublic void testCreateTempOutput()
throws java.lang.Throwable
java.lang.Throwablepublic void testCreateOutputForExistingFile()
throws java.io.IOException
java.io.IOExceptionpublic void testSeekToEndOfFile()
throws java.io.IOException
java.io.IOExceptionpublic void testSeekBeyondEndOfFile()
throws java.io.IOException
java.io.IOExceptionpublic void testPendingDeletions()
throws java.io.IOException
java.io.IOExceptionpublic void testListAllIsSorted()
throws java.io.IOException
java.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.