LUCENE-6149: Fixed typo

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1650132 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tomas Eduardo Fernandez Lobbe 2015-01-07 18:10:22 +00:00
parent 980c1e42f1
commit 6f72b548e4
1 changed files with 5 additions and 5 deletions

View File

@ -111,15 +111,15 @@ public class AnalyzingInfixSuggesterTest extends LuceneTestCase {
assertEquals("a penny saved is a penny earned", results.get(0).key); assertEquals("a penny saved is a penny earned", results.get(0).key);
assertNull(results.get(0).highlightKey); assertNull(results.get(0).highlightKey);
testConstructorDefatuls(suggester, keys, a, true, true); testConstructorDefaults(suggester, keys, a, true, true);
testConstructorDefatuls(suggester, keys, a, true, false); testConstructorDefaults(suggester, keys, a, true, false);
testConstructorDefatuls(suggester, keys, a, false, false); testConstructorDefaults(suggester, keys, a, false, false);
testConstructorDefatuls(suggester, keys, a, false, true); testConstructorDefaults(suggester, keys, a, false, true);
suggester.close(); suggester.close();
} }
private void testConstructorDefatuls(AnalyzingInfixSuggester suggester, Input[] keys, Analyzer a, private void testConstructorDefaults(AnalyzingInfixSuggester suggester, Input[] keys, Analyzer a,
boolean allTermsRequired, boolean highlight) throws IOException { boolean allTermsRequired, boolean highlight) throws IOException {
AnalyzingInfixSuggester suggester2 = new AnalyzingInfixSuggester(newDirectory(), a, a, 3, false, allTermsRequired, highlight); AnalyzingInfixSuggester suggester2 = new AnalyzingInfixSuggester(newDirectory(), a, a, 3, false, allTermsRequired, highlight);
suggester2.build(new InputArrayIterator(keys)); suggester2.build(new InputArrayIterator(keys));