From 4585a60d7e48e052e4abc954ecbc90d393cf9e2a Mon Sep 17 00:00:00 2001 From: luccioman Date: Fri, 30 Sep 2016 17:12:29 +0200 Subject: [PATCH] Made use of the constant corresponding to the hard-coded value. --- test/java/net/yacy/search/snippet/TextSnippetTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/java/net/yacy/search/snippet/TextSnippetTest.java b/test/java/net/yacy/search/snippet/TextSnippetTest.java index 5e703d3f8..f7e6b579d 100644 --- a/test/java/net/yacy/search/snippet/TextSnippetTest.java +++ b/test/java/net/yacy/search/snippet/TextSnippetTest.java @@ -9,6 +9,7 @@ import net.yacy.cora.storage.HandleSet; import net.yacy.cora.util.CommonPattern; import net.yacy.kelondro.data.meta.URIMetadataNode; import net.yacy.search.query.QueryGoal; +import net.yacy.search.query.SearchEvent; import net.yacy.search.schema.CollectionSchema; import org.apache.solr.common.SolrDocument; import static org.junit.Assert.*; @@ -21,7 +22,7 @@ public class TextSnippetTest { // declare some required parameter final CacheStrategy cacheStrategy = CacheStrategy.CACHEONLY; final boolean pre = true; - final int snippetMaxLength = 220; + final int snippetMaxLength = SearchEvent.SNIPPET_MAX_LENGTH; final boolean reindexing = false; SolrDocument doc;