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(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, 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(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public void testCopyFrom() throws java.lang.Exception
java.lang.Exception
public void testRename() throws java.lang.Exception
java.lang.Exception
public void testDeleteFile() throws java.lang.Exception
java.lang.Exception
public void testByte() throws java.lang.Exception
java.lang.Exception
public void testShort() throws java.lang.Exception
java.lang.Exception
public void testInt() throws java.lang.Exception
java.lang.Exception
public void testLong() throws java.lang.Exception
java.lang.Exception
public void testString() throws java.lang.Exception
java.lang.Exception
public void testVInt() throws java.lang.Exception
java.lang.Exception
public void testVLong() throws java.lang.Exception
java.lang.Exception
public void testZInt() throws java.lang.Exception
java.lang.Exception
public void testZLong() throws java.lang.Exception
java.lang.Exception
public void testSetOfStrings() throws java.lang.Exception
java.lang.Exception
public void testMapOfStrings() throws java.lang.Exception
java.lang.Exception
public void testChecksum() throws java.lang.Exception
java.lang.Exception
public void testDetectClose() throws java.lang.Throwable
java.lang.Throwable
public void testThreadSafetyInListAll() throws java.lang.Exception
java.lang.Exception
public void testFileExistsInListAfterCreated() throws java.io.IOException
java.io.IOException
public void testSeekToEOFThenBack() throws java.lang.Exception
java.lang.Exception
public void testIllegalEOF() throws java.lang.Exception
java.lang.Exception
public void testSeekPastEOF() throws java.lang.Exception
java.lang.Exception
public void testSliceOutOfBounds() throws java.lang.Exception
java.lang.Exception
public void testNoDir() throws java.lang.Throwable
java.lang.Throwable
public void testCopyBytes() throws java.lang.Exception
java.lang.Exception
public void testCopyBytesWithThreads() throws java.lang.Exception
java.lang.Exception
public void testFsyncDoesntCreateNewFiles() throws java.lang.Exception
java.lang.Exception
public void testRandomLong() throws java.lang.Exception
java.lang.Exception
public void testRandomInt() throws java.lang.Exception
java.lang.Exception
public void testRandomShort() throws java.lang.Exception
java.lang.Exception
public void testRandomByte() throws java.lang.Exception
java.lang.Exception
public void testSliceOfSlice() throws java.lang.Exception
java.lang.Exception
public void testLargeWrites() throws java.io.IOException
java.io.IOException
public void testIndexOutputToString() throws java.lang.Throwable
java.lang.Throwable
public void testDoubleCloseOutput() throws java.lang.Throwable
java.lang.Throwable
public void testDoubleCloseInput() throws java.lang.Throwable
java.lang.Throwable
public void testCreateTempOutput() throws java.lang.Throwable
java.lang.Throwable
public void testCreateOutputForExistingFile() throws java.io.IOException
java.io.IOException
public void testSeekToEndOfFile() throws java.io.IOException
java.io.IOException
public void testSeekBeyondEndOfFile() throws java.io.IOException
java.io.IOException
public void testPendingDeletions() throws java.io.IOException
java.io.IOException
public void testListAllIsSorted() throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.