commit | ad1300ba68a4fd30da1d236b32c601b1a5be3b28 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Mon Dec 13 17:36:29 2021 +0100 |
committer | margaretha <margaretha@ids-mannheim.de> | Fri Dec 17 16:32:17 2021 +0100 |
tree | f36bfd847aba37c4f817bb0fe3b5060ca300a6cf | |
parent | 9a4843a6c9c3c22dccac00ec611046fa7749c6ea [diff] |
Fixed broken test suite. Change-Id: Ie8a040eb20397c9e8fdfed1a488fa30008cb4753
diff --git a/full/src/test/java/de/ids_mannheim/korap/rewrite/VirtualCorpusRewriteTest.java b/full/src/test/java/de/ids_mannheim/korap/rewrite/VirtualCorpusRewriteTest.java index 6d12373..4d2f684 100644 --- a/full/src/test/java/de/ids_mannheim/korap/rewrite/VirtualCorpusRewriteTest.java +++ b/full/src/test/java/de/ids_mannheim/korap/rewrite/VirtualCorpusRewriteTest.java
@@ -1,6 +1,7 @@ package de.ids_mannheim.korap.rewrite; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; @@ -59,7 +60,8 @@ dao.deleteQuery(vc); vc = dao.retrieveQueryByName("named-vc1", "system"); assertNull(vc); -// VirtualCorpusCache.reset(); + VirtualCorpusCache.delete("named-vc1"); + assertFalse(VirtualCorpusCache.contains("named-vc1")); } private void testRefCachedVCWithUsername ()
diff --git a/full/src/test/resources/kustvakt-test.conf b/full/src/test/resources/kustvakt-test.conf index bc6f8e3..4e5a2e5 100644 --- a/full/src/test/resources/kustvakt-test.conf +++ b/full/src/test/resources/kustvakt-test.conf
@@ -7,6 +7,7 @@ krill.index.relations.max = 100 ## Directory path of virtual corpora to cache krill.namedVC = vc +krill.test = true #LDAP ldap.config = file-path-to-ldap-config