fix test cases.
This commit is contained in:
parent
bb28d55594
commit
bab11c0f46
2 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
package jp.sf.fess.dic;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashSet;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
import jp.sf.fess.dic.synonym.SynonymLocator;
|
||||
|
@ -52,8 +52,8 @@ public class DictionaryManagerTest extends S2TestCase {
|
|||
dictionaryManager.keepAlive = 1000;
|
||||
dictionaryManager.watcherTimeout = 1;
|
||||
final SynonymLocator synonymLocator = new SynonymLocator();
|
||||
synonymLocator.excludedSynonymSet = new HashSet<String>();
|
||||
synonymLocator.excludedSynonymSet.add("data");
|
||||
synonymLocator.excludedSynonymList = new ArrayList<String>();
|
||||
synonymLocator.excludedSynonymList.add("data");
|
||||
synonymLocator.addSearchPath(testDir.getAbsolutePath());
|
||||
dictionaryManager.init();
|
||||
final DictionaryFile[] synonymFiles = dictionaryManager
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package jp.sf.fess.dic.synonym;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashSet;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Map;
|
||||
|
||||
import jp.sf.fess.Constants;
|
||||
|
@ -79,8 +79,8 @@ public class SynonymLocatorTest extends S2TestCase {
|
|||
|
||||
public void test_find() {
|
||||
final SynonymLocator synonymLocator = new SynonymLocator();
|
||||
synonymLocator.excludedSynonymSet = new HashSet<String>();
|
||||
synonymLocator.excludedSynonymSet.add("data");
|
||||
synonymLocator.excludedSynonymList = new ArrayList<String>();
|
||||
synonymLocator.excludedSynonymList.add("data");
|
||||
synonymLocator.addSearchPath(testDir.getAbsolutePath());
|
||||
final Map<String, DictionaryFile> fileMap = synonymLocator.find();
|
||||
assertEquals(2, fileMap.size());
|
||||
|
|
Loading…
Add table
Reference in a new issue