Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » index » [javadoc | source]
org.apache.lucene.index
public class: TestDoc [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.lucene.index.TestDoc
JUnit adaptation of an older test case DocTest.
Method from org.apache.lucene.index.TestDoc Summary:
main,   setUp,   testIndexAndMerge
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.index.TestDoc Detail:
 public static  void main(String[] args) 
    Main for running test case by itself.
 public  void setUp() throws IOException 
    Set the test case. This test case needs a few text files created in the current working directory.
 public  void testIndexAndMerge() throws Exception 
    This test executes a number of merges and compares the contents of the segments created when using compound file or not using one. TODO: the original test used to print the segment contents to System.out for visual validation. To have the same effect, a new method checkSegment(String name, ...) should be created that would assert various things about the segment.