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.Weekly
assertsAreEnabled, 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(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, wrapReader
assertArrayEquals, 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, fail
protected abstract Directory getDirectory(Path path) throws IOException
IOException
public void testDetectClose() throws Throwable
Throwable
public void testThreadSafetyInListAll() throws Exception
Exception
public void testFileExistsInListAfterCreated() throws IOException
IOException
public void testFsyncDoesntCreateNewFiles() throws Exception
Exception
public void testSliceOfSlice() throws Exception
Exception
public void testLargeWrites() throws IOException
IOException
public void testCreateOutputForExistingFile() throws IOException
IOException
public void testSeekToEndOfFile() throws IOException
IOException
public void testSeekBeyondEndOfFile() throws IOException
IOException
public void testPendingDeletions() throws IOException
IOException
public void testListAllIsSorted() throws IOException
IOException
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.