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_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(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 |
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, wrapReader
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, assertFalse, assertFalse, 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 testDirectoryFilter() throws IOException
IOException
public static void testCopyBytesWithThreads(Directory d) throws Exception
Exception
public void testFsyncDoesntCreateNewFiles() throws Exception
Exception
public void testSliceOfSlice() throws Exception
Exception
public void testLargeWrites() 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-2016 Apache Software Foundation. All Rights Reserved.