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_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, 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)
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() |
static void |
testCopyBytes(Directory dir) |
void |
testCopyBytesWithThreads() |
static void |
testCopyBytesWithThreads(Directory d) |
void |
testCopyFrom() |
void |
testCopyFromDestination() |
void |
testCopyOverwrite() |
void |
testCreateTempOutput() |
void |
testDeleteFile() |
void |
testDetectClose()
Make sure directory throws AlreadyClosedException if
you try to createOutput after closing.
|
void |
testDirectoryFilter()
LUCENE-1468: once we create an output, we should see
it in the dir listing and be able to open it with
openInput.
|
void |
testDoubleCloseDirectory() |
void |
testDoubleCloseInput() |
void |
testDoubleCloseOutput() |
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 |
testStringMap() |
void |
testStringSet() |
void |
testThreadSafety() |
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, atLeast, atLeast, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, expectThrows, getBaseTempDirForTestClass, getDataInputStream, getDataPath, getOnlyLeafReader, getTestClass, getTestName, 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, 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, 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 testCopyFromDestination()
throws java.lang.Exception
java.lang.Exceptionpublic void testRename()
throws java.lang.Exception
java.lang.Exceptionpublic void testCopyOverwrite()
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 testStringSet()
throws java.lang.Exception
java.lang.Exceptionpublic void testStringMap()
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 testThreadSafety()
throws java.lang.Exception
java.lang.Exceptionpublic void testDirectoryFilter()
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 static void testCopyBytes(Directory dir) throws java.lang.Exception
java.lang.Exceptionpublic void testCopyBytesWithThreads()
throws java.lang.Exception
java.lang.Exceptionpublic static void testCopyBytesWithThreads(Directory d) 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 testDoubleCloseDirectory()
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 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–2017 The Apache Software Foundation. All rights reserved.