lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r900154 - /lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java
Date Sun, 17 Jan 2010 14:55:35 GMT
Author: uschindler
Date: Sun Jan 17 14:55:35 2010
New Revision: 900154

URL: http://svn.apache.org/viewvc?rev=900154&view=rev
Log:
Fix test failure on a checkout with spaces in file path caused by recent LUCENE-2212 commit

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java?rev=900154&r1=900153&r2=900154&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/analysis/TestPorterStemFilter.java Sun Jan
17 14:55:35 2010
@@ -33,11 +33,11 @@
    * 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(



Mime
View raw message