commit | 4f643b016c102ea3266333c8b7f42bf613f5f421 | [log] [tgz] |
---|---|---|
author | margaretha <margaretha@ids-mannheim.de> | Tue May 28 11:21:09 2024 +0200 |
committer | margaretha <margaretha@ids-mannheim.de> | Tue May 28 11:21:09 2024 +0200 |
tree | d5bcd1a75d1aec0053b9cacbfc5d5236bd684c42 | |
parent | e2cc49f648efb4727adbe7df6f488432758463fb [diff] |
Fixed maxTokenMatchSize usage in tests. Change-Id: I87c932dc86dd7838c1cf1ebc0bcce6dc14b1d413
diff --git a/src/test/java/de/ids_mannheim/korap/index/TestMaxMatchTokens.java b/src/test/java/de/ids_mannheim/korap/index/TestMaxMatchTokens.java index 262a0f4..5a39340 100644 --- a/src/test/java/de/ids_mannheim/korap/index/TestMaxMatchTokens.java +++ b/src/test/java/de/ids_mannheim/korap/index/TestMaxMatchTokens.java
@@ -8,6 +8,7 @@ import java.util.ArrayList; import org.junit.AfterClass; +import org.junit.Before; import org.junit.Test; import de.ids_mannheim.korap.Krill; @@ -36,6 +37,11 @@ .getFile()); } + @Before + public void init() { + KrillProperties.maxTokenMatchSize = 40; + } + @AfterClass public static void resetMaxTokenMatchSize() { KrillProperties.maxTokenMatchSize = 50;
diff --git a/src/test/resources/krill.properties b/src/test/resources/krill.properties index 9cfe438..3714c0c 100644 --- a/src/test/resources/krill.properties +++ b/src/test/resources/krill.properties
@@ -6,5 +6,5 @@ krill.namedVC = queries/collections/named-vcs/ krill.test = true -krill.match.max.token=40 +krill.match.max.token=50 krill.context.max.token=25