Class BaseDirectoryTestCase
Base class for per-Directory tests.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class BaseDirectoryTestCase : LuceneTestCase
Methods
| Improve this Doc View SourceGetDirectory(DirectoryInfo)
A subclass returns the Lucene.Net.Store.Directory to be tested; if it's an FS-based directory it should point to the specified path, else it can ignore it.
Declaration
protected abstract Directory GetDirectory(DirectoryInfo path)
Parameters
Type | Name | Description |
---|---|---|
System.IO.DirectoryInfo | path |
Returns
Type | Description |
---|---|
Lucene.Net.Store.Directory |
TestByte()
Declaration
[Test]
public virtual void TestByte()
TestChecksum()
Declaration
[Test]
public virtual void TestChecksum()
TestCopyBytes()
Declaration
[Test]
public virtual void TestCopyBytes()
TestCopyBytesWithThreads()
Declaration
[Test]
public virtual void TestCopyBytesWithThreads()
TestDeleteFile()
Declaration
[Test]
public virtual void TestDeleteFile()
TestDetectClose()
Make sure directory throws System.ObjectDisposedException if you try to Lucene.Net.Store.Directory.CreateOutput(System.String,Lucene.Net.Store.IOContext) after disposing.
Declaration
[Test]
public virtual void TestDetectClose()
TestFileExistsInListAfterCreated()
LUCENE-1468: once we create an output, we should see it in the dir listing.
Declaration
[Test]
public virtual void TestFileExistsInListAfterCreated()
TestFsyncDoesntCreateNewFiles()
Declaration
[Test]
public virtual void TestFsyncDoesntCreateNewFiles()
TestIllegalEOF()
Declaration
[Test]
public virtual void TestIllegalEOF()
TestInt16()
Declaration
[Test]
public virtual void TestInt16()
TestInt32()
Declaration
[Test]
public virtual void TestInt32()
TestInt64()
Declaration
[Test]
public virtual void TestInt64()
TestLargeWrites()
This test that writes larger than the size of the buffer output will correctly increment the file pointer.
Declaration
[Test]
public virtual void TestLargeWrites()
TestNoDir()
Declaration
[Test]
public virtual void TestNoDir()
TestSeekToEndOfFile()
Declaration
[Test]
public virtual void TestSeekToEndOfFile()
TestSeekToEOFThenBack()
Declaration
[Test]
public void TestSeekToEOFThenBack()
TestString()
Declaration
[Test]
public virtual void TestString()
TestVInt32()
Declaration
[Test]
public virtual void TestVInt32()
TestVInt64()
Declaration
[Test]
public virtual void TestVInt64()