Fix test failure on a checkout with spaces in file path caused by recent LUCENE-2212 commit

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@900154 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2010-01-17 14:55:35 +00:00
parent b58ccc081a
commit 2c86ce4c17
1 changed files with 2 additions and 2 deletions

View File

@ -33,11 +33,11 @@ public class TestPorterStemFilter extends BaseTokenStreamTestCase {
* Run the stemmer against all strings in voc.txt
* The output should be the same as the string in output.txt
*/
public void testPorterStemFilter() throws IOException {
public void testPorterStemFilter() throws Exception {
Tokenizer tokenizer = new KeywordTokenizer(new StringReader(""));
TokenStream filter = new PorterStemFilter(tokenizer);
ZipFile zipFile = new ZipFile(
new File(getClass().getResource("porterTestData.zip").getFile()));
new File(getClass().getResource("porterTestData.zip").toURI()));
InputStream voc = zipFile.getInputStream(zipFile.getEntry("voc.txt"));
InputStream out = zipFile.getInputStream(zipFile.getEntry("output.txt"));
BufferedReader vocReader = new BufferedReader(new InputStreamReader(