fixed testcase which failed with -Dtests.multiplier > 1

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1058131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-01-12 13:27:38 +00:00
parent 76c3de6ece
commit 121b79e7e5
1 changed files with 5 additions and 5 deletions

View File

@ -22,16 +22,16 @@ import java.util.Map;
import org.apache.lucene.analysis.Token; import org.apache.lucene.analysis.Token;
import org.apache.solr.SolrTestCaseJ4; import org.apache.solr.SolrTestCaseJ4;
import org.apache.solr.spelling.PossibilityIterator; import org.apache.solr.spelling.PossibilityIterator;
import org.junit.BeforeClass; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
public class SpellPossibilityIteratorTest extends SolrTestCaseJ4 { public class SpellPossibilityIteratorTest extends SolrTestCaseJ4 {
private static Map<Token, LinkedHashMap<String, Integer>> suggestions = new LinkedHashMap<Token, LinkedHashMap<String, Integer>>(); private static Map<Token, LinkedHashMap<String, Integer>> suggestions = new LinkedHashMap<Token, LinkedHashMap<String, Integer>>();
@BeforeClass @Before
public static void beforeClass() throws Exception { public void setUp() throws Exception {
super.setUp();
suggestions.clear(); suggestions.clear();
LinkedHashMap<String, Integer> AYE = new LinkedHashMap<String, Integer>(); LinkedHashMap<String, Integer> AYE = new LinkedHashMap<String, Integer>();
@ -72,7 +72,7 @@ public class SpellPossibilityIteratorTest extends SolrTestCaseJ4 {
suggestions.put(new Token("BEE", 0, 2), BEE); suggestions.put(new Token("BEE", 0, 2), BEE);
suggestions.put(new Token("CEE", 0, 2), CEE); suggestions.put(new Token("CEE", 0, 2), CEE);
} }
@Test @Test
public void testSpellPossibilityIterator() throws Exception { public void testSpellPossibilityIterator() throws Exception {
PossibilityIterator iter = new PossibilityIterator(suggestions); PossibilityIterator iter = new PossibilityIterator(suggestions);