SOLR-4275: Fix test. Sorry, the Solr build system did not recognize the test change without ant clean!?

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1429419 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2013-01-05 23:03:51 +00:00
parent 64e18dc0f6
commit 643fab0b82
1 changed files with 3 additions and 1 deletions

View File

@ -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 SolrTestCaseJ4 {
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());