mirror of https://github.com/apache/lucene.git
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:
parent
64e18dc0f6
commit
643fab0b82
|
@ -16,6 +16,7 @@
|
||||||
*/
|
*/
|
||||||
package org.apache.solr;
|
package org.apache.solr;
|
||||||
|
|
||||||
|
import org.apache.lucene.analysis.TokenStream;
|
||||||
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
|
import org.apache.lucene.analysis.tokenattributes.OffsetAttribute;
|
||||||
import org.apache.solr.request.SolrQueryRequest;
|
import org.apache.solr.request.SolrQueryRequest;
|
||||||
import org.apache.solr.schema.DateField;
|
import org.apache.solr.schema.DateField;
|
||||||
|
@ -26,6 +27,7 @@ import org.junit.After;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.StringReader;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
@ -64,7 +66,7 @@ public class TestTrie extends SolrTestCaseJ4 {
|
||||||
assertEquals(0, ofsAtt.startOffset());
|
assertEquals(0, ofsAtt.startOffset());
|
||||||
assertEquals(value.length(), ofsAtt.endOffset());
|
assertEquals(value.length(), ofsAtt.endOffset());
|
||||||
}
|
}
|
||||||
final int precStep = ((TrieType) type).getPrecisionStep();
|
final int precStep = ((TrieField) type).getPrecisionStep();
|
||||||
assertEquals( (32 + precStep - 1) / precStep, count);
|
assertEquals( (32 + precStep - 1) / precStep, count);
|
||||||
ts.end();
|
ts.end();
|
||||||
assertEquals(value.length(), ofsAtt.startOffset());
|
assertEquals(value.length(), ofsAtt.startOffset());
|
||||||
|
|
Loading…
Reference in New Issue