mirror of https://github.com/apache/lucene.git
adjust test for html strip changes
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@826243 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4bf5482a8
commit
b38eff8eec
|
@ -311,11 +311,11 @@ public class FieldAnalysisRequestHandlerTest extends AnalysisRequestHandlerTestB
|
|||
NamedList indexPart = textType.get("index");
|
||||
assertNotNull("expecting an index token analysis for field type 'charfilthtmlmap'", indexPart);
|
||||
|
||||
assertEquals(" whátëvêr ", indexPart.get("org.apache.solr.analysis.HTMLStripCharFilter"));
|
||||
assertEquals(" whatever ", indexPart.get("org.apache.lucene.analysis.MappingCharFilter"));
|
||||
assertEquals(" whátëvêr ", indexPart.get("org.apache.solr.analysis.HTMLStripCharFilter"));
|
||||
assertEquals(" whatever ", indexPart.get("org.apache.lucene.analysis.MappingCharFilter"));
|
||||
|
||||
List<NamedList> tokenList = (List<NamedList>)indexPart.get("org.apache.lucene.analysis.WhitespaceTokenizer");
|
||||
assertNotNull("Expcting WhitespaceTokenizer analysis breakdown", tokenList);
|
||||
assertNotNull("Expecting WhitespaceTokenizer analysis breakdown", tokenList);
|
||||
assertEquals(tokenList.size(), 1);
|
||||
assertToken(tokenList.get(0), new TokenInfo("whatever", null, "word", 12, 20, 1, null, false));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue