import junit.framework.TestCase;
/*
 * File DictionaryTest.java
 * Created on Oct 14, 2005
 */

public class DictionaryTest extends TestCase {

    /*
     * Test method for 'Dictionary.getWordList(String)'
     */
    public void testGetWordList() {
        String[] wordList;
        wordList = Dictionary.getWordList("TYPE");
        assertEquals("DET", wordList[0]);
        wordList = Dictionary.getWordList("English");
        assertEquals("the", wordList[0]);
        wordList = Dictionary.getWordList("French");
        assertEquals("le", wordList[0]);
        wordList = Dictionary.getWordList("German");
        assertEquals("der", wordList[0]);
        try {
            Dictionary.getWordList("Some illegal value");
            fail();
        }
        catch (IllegalArgumentException e) {
        }
    }
}
