From 121b79e7e5108db636cec1782b5436c2191ad4c8 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 12 Jan 2011 13:27:38 +0000 Subject: [PATCH] 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 --- .../solr/spelling/SpellPossibilityIteratorTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/solr/src/test/org/apache/solr/spelling/SpellPossibilityIteratorTest.java b/solr/src/test/org/apache/solr/spelling/SpellPossibilityIteratorTest.java index 34a950950c3..1cb7b040307 100644 --- a/solr/src/test/org/apache/solr/spelling/SpellPossibilityIteratorTest.java +++ b/solr/src/test/org/apache/solr/spelling/SpellPossibilityIteratorTest.java @@ -22,16 +22,16 @@ import java.util.Map; import org.apache.lucene.analysis.Token; import org.apache.solr.SolrTestCaseJ4; import org.apache.solr.spelling.PossibilityIterator; -import org.junit.BeforeClass; +import org.junit.Before; import org.junit.Test; public class SpellPossibilityIteratorTest extends SolrTestCaseJ4 { private static Map> suggestions = new LinkedHashMap>(); - @BeforeClass - public static void beforeClass() throws Exception { - + @Before + public void setUp() throws Exception { + super.setUp(); suggestions.clear(); LinkedHashMap AYE = new LinkedHashMap(); @@ -72,7 +72,7 @@ public class SpellPossibilityIteratorTest extends SolrTestCaseJ4 { suggestions.put(new Token("BEE", 0, 2), BEE); suggestions.put(new Token("CEE", 0, 2), CEE); } - + @Test public void testSpellPossibilityIterator() throws Exception { PossibilityIterator iter = new PossibilityIterator(suggestions);