PageRenderTime 40ms CodeModel.GetById 20ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. package testcase;
  2. import infoviewer.lucene.IndexBuilder;
  3. import java.lang.reflect.Method;
  4. import junit.framework.TestCase;
  5. import org.gjt.sp.jedit.jEdit;
  6. public class TestIndexBuilder extends TestCase
  7. {
  8. IndexBuilder indexBuilder;
  9. protected void setUp() throws Exception
  10. {
  11. indexBuilder = IndexBuilder.instance();
  12. }
  13. public void testSettingsDir() {
  14. String settingsDir= jEdit.getSettingsDirectory();
  15. assertEquals("/home/ezust/.jedit", settingsDir);
  16. indexBuilder.search("fold");
  17. }
  18. }