public virtual void Test()
{
IndexReader reader = null;
try
{
reader = IndexReader.Open(directory, true);
for (int i = 1; i <= numThreads; i++)
TestTermPositionVectors(reader, i);
}
catch (System.IO.IOException ioe)
{
Assert.Fail(ioe.Message);
}
finally
{
if (reader != null)
{
try
{
/** close the opened reader */
reader.Close();
}
catch (System.IO.IOException ioe)
{
System.Console.Error.WriteLine(ioe.StackTrace);
}
}
}
}