Skip to content

Commit

Permalink
HSEARCH-1098 Adapt tests to changed behaviour of HTML Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Apr 23, 2012
1 parent edf541b commit 8b17b1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ public void testAnalyzers() throws Exception {
analyzer = fts.getSearchFactory().getAnalyzer( "html_standard_analyzer" );
text = "This is <b>foo</b><i>bar's</i>";
tokens = AnalyzerUtils.tokensFromAnalysis( analyzer, "name", text );
assertTokensEqual( tokens, new String[] { "This", "is", "foo", "bar" } );
assertTokensEqual( tokens, new String[] { "This", "is", "foobar" } );

analyzer = fts.getSearchFactory().getAnalyzer( "html_whitespace_analyzer" );
text = "This is <b>foo</b><i>bar's</i>";
tokens = AnalyzerUtils.tokensFromAnalysis( analyzer, "name", text );
assertTokensEqual( tokens, new String[] { "This", "is", "foo", "bar's" } );
assertTokensEqual( tokens, new String[] { "This", "is", "foobar's" } );

analyzer = fts.getSearchFactory().getAnalyzer( "trim_analyzer" );
text = " Kittens! ";
Expand Down

0 comments on commit 8b17b1e

Please sign in to comment.