improve test

This commit is contained in:
kimchy 2010-03-18 00:29:07 +02:00
parent 3a55998a3b
commit a8be04b334

View File

@ -57,6 +57,7 @@ public class VectorHighlighterTests {
FastVectorHighlighter highlighter = new FastVectorHighlighter();
String fragment = highlighter.getBestFragment(highlighter.getFieldQuery(new TermQuery(new Term("content", "bad"))),
reader, topDocs.scoreDocs[0].doc, "content", 30);
assertThat(fragment, notNullValue());
System.out.println(fragment);
}
}