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");
|
NamedList indexPart = textType.get("index");
|
||||||
assertNotNull("expecting an index token analysis for field type 'charfilthtmlmap'", indexPart);
|
assertNotNull("expecting an index token analysis for field type 'charfilthtmlmap'", indexPart);
|
||||||
|
|
||||||
assertEquals(" whátëvêr ", indexPart.get("org.apache.solr.analysis.HTMLStripCharFilter"));
|
assertEquals(" whátëvêr ", indexPart.get("org.apache.solr.analysis.HTMLStripCharFilter"));
|
||||||
assertEquals(" whatever ", indexPart.get("org.apache.lucene.analysis.MappingCharFilter"));
|
assertEquals(" whatever ", indexPart.get("org.apache.lucene.analysis.MappingCharFilter"));
|
||||||
|
|
||||||
List<NamedList> tokenList = (List<NamedList>)indexPart.get("org.apache.lucene.analysis.WhitespaceTokenizer");
|
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);
|
assertEquals(tokenList.size(), 1);
|
||||||
assertToken(tokenList.get(0), new TokenInfo("whatever", null, "word", 12, 20, 1, null, false));
|
assertToken(tokenList.get(0), new TokenInfo("whatever", null, "word", 12, 20, 1, null, false));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue