View Javadoc

1   package org.paneris.bibliomania.fti.test;
2   
3   import java.io.BufferedInputStream;
4   import java.io.File;
5   import java.io.FileInputStream;
6   import java.io.InputStream;
7   
8   import org.paneris.bibliomania.fti.IndexOther;
9   import org.paneris.bibliomania.fti.Text;
10  
11  
12  import junit.framework.TestCase;
13  
14  public class IndexOtherTest extends TestCase {
15    IndexOther index = null;
16    
17    public void setUp() throws Exception {
18      index = new IndexOther(
19          new File("/usr/local/share/bibliomania/workspace/infoFTI"));
20    }
21  
22    public final void testIdOfWord() {
23    }
24  
25    public final void testSetTI() {
26    }
27  
28    public final void testGetTI_textID() {
29    }
30  
31    public final void testUnIndex() {
32    }
33  
34    public final void testIndex () throws Exception {
35       
36      final String filename = "/usr/local/bibliomania/books/Drama/WilliamShakespeare/Macbeth/0001.html";
37      final long textID = Long.parseLong("1");
38      final InputStream body = new BufferedInputStream(new FileInputStream(
39          filename));
40      index.index(new Text() {
41        public InputStream body() {
42          return body;
43        }
44  
45        public InputStream bodyForFragment() {
46          return body;
47        }
48  
49        public long ftiTextID() {
50          return textID;
51        }
52      });
53      index.allEntries();
54    }
55  
56    public final void testAndSearchResults() {
57    }
58  
59    public final void testGroupSearchResults() {
60    }
61  
62    public final void testBlockmarkerBeforeFirstOccurrence() {
63    }
64  
65    public final void testStat() {
66    }
67  
68    public final void testFlush() {
69    }
70  
71    public final void testClose() {
72    }
73  
74    public final void testAppendTerms() {
75    }
76  
77    public final void testQuerySearchResultsStringString() {
78    }
79  
80    public final void testQuerySearchResultsString() {
81    }
82  
83    public final void testAllEntries() {
84    }
85  
86  }