PageRenderTime 46ms CodeModel.GetById 43ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/InfoViewer/testcase/TestIndexBuilder.java

#
Java | 32 lines | 18 code | 14 blank | 0 comment | 0 complexity | ab9b2681f463af3347b8bf2dce1435a5 MD5 | raw file
 1package testcase;
 2
 3import infoviewer.lucene.IndexBuilder;
 4
 5import java.lang.reflect.Method;
 6
 7
 8import junit.framework.TestCase;
 9
10import org.gjt.sp.jedit.jEdit;
11
12
13
14public class TestIndexBuilder extends TestCase
15{
16	IndexBuilder indexBuilder;
17	
18	protected void setUp() throws Exception
19	{
20		indexBuilder = IndexBuilder.instance();
21		
22
23	}
24    
25	public void testSettingsDir() {
26		String settingsDir= jEdit.getSettingsDirectory();
27		assertEquals("/home/ezust/.jedit", settingsDir);
28		indexBuilder.search("fold");
29	}
30
31	
32}