1
2
3
4
5
6
7 package net.sf.gumshoe.indexer;
8
9 import java.io.*;
10
11 import junit.framework.TestCase;
12
13 /***
14 * @author Gabor
15 *
16 * TODO To change the template for this generated type comment go to
17 * Window - Preferences - Java - Code Style - Code Templates
18 */
19 public class DiskIndexerTest extends TestCase {
20
21 public static void main(String[] args) {
22 junit.textui.TestRunner.run(DiskIndexerTest.class);
23 }
24
25 /***
26 * @param name
27 */
28 public DiskIndexerTest(String name) {
29 super(name);
30 }
31
32
33
34
35 protected void setUp() throws Exception {
36 super.setUp();
37 }
38
39 public void testIndexing() throws Exception {
40 File indexDir = new File("src/test/testindex");
41 File dataDir = new File("src/test/testdata");
42
43 new DiskIndexer().index(indexDir, dataDir, true);
44 }
45 }