search krill test
diff --git a/src/test/java/de/ids_mannheim/korap/web/service/SearchKrillTest.java b/src/test/java/de/ids_mannheim/korap/web/service/SearchKrillTest.java
index b006d09..87d3c08 100644
--- a/src/test/java/de/ids_mannheim/korap/web/service/SearchKrillTest.java
+++ b/src/test/java/de/ids_mannheim/korap/web/service/SearchKrillTest.java
@@ -1,6 +1,7 @@
package de.ids_mannheim.korap.web.service;
import com.fasterxml.jackson.databind.JsonNode;
+import de.ids_mannheim.korap.KrillIndex;
import de.ids_mannheim.korap.config.BeanConfigTest;
import de.ids_mannheim.korap.config.KustvaktConfiguration;
import de.ids_mannheim.korap.exceptions.KustvaktException;
@@ -23,12 +24,24 @@
@Test
public void testInit () {
KustvaktConfiguration config = helper().getContext().getConfiguration();
+ System.out.println("'" + config.getIndexDir() + "'");
SearchKrill krill = new SearchKrill(config.getIndexDir());
assertNotNull(krill);
}
@Test
+ public void testIndex () {
+ KustvaktConfiguration config = helper().getContext().getConfiguration();
+ SearchKrill krill = new SearchKrill(config.getIndexDir());
+ assertNotNull(krill);
+
+ KrillIndex index = krill.getIndex();
+ assertNotNull(index);
+ }
+
+
+ @Test
public void testDocSize () {
KustvaktConfiguration config = helper().getContext().getConfiguration();
SearchKrill krill = new SearchKrill(config.getIndexDir());