lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1429419 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java
Date Sat, 05 Jan 2013 23:03:51 GMT
Author: uschindler
Date: Sat Jan  5 23:03:51 2013
New Revision: 1429419

URL: http://svn.apache.org/viewvc?rev=1429419&view=rev
Log:
SOLR-4275: Fix test. Sorry, the Solr build system did not recognize the test change without
ant clean!?

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java?rev=1429419&r1=1429418&r2=1429419&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/TestTrie.java Sat Jan  5 23:03:51
2013
@@ -16,6 +16,7 @@
  */
 package org.apache.solr;
 
+import org.apache.lucene.analysis.TokenStream;
 import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
 import org.apache.solr.request.SolrQueryRequest;
 import org.apache.solr.schema.DateField;
@@ -26,6 +27,7 @@ import org.junit.After;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
+import java.io.StringReader;
 import java.text.SimpleDateFormat;
 import java.util.Locale;
 import java.util.TimeZone;
@@ -64,7 +66,7 @@ public class TestTrie extends SolrTestCa
       assertEquals(0, ofsAtt.startOffset());
       assertEquals(value.length(), ofsAtt.endOffset());
     }
-    final int precStep = ((TrieType) type).getPrecisionStep();
+    final int precStep = ((TrieField) type).getPrecisionStep();
     assertEquals( (32 + precStep - 1) / precStep, count);
     ts.end();
     assertEquals(value.length(), ofsAtt.startOffset());



Mime
View raw message