Issue deprecation warnings when building test cases. Fixed deprecation warnings on TestKeywordAnalyzer

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@160012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-04-04 09:10:59 +00:00
parent 3be3e8ab5d
commit 4e580e221e
2 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,8 @@ public class TestKeywordAnalyzer extends TestCase {
true);
Document doc = new Document();
doc.add(Field.Keyword("partnum", "Q36"));
doc.add(Field.Text("description", "Illidium Space Modulator"));
doc.add(new Field("partnum", "Q36", Field.Store.YES, Field.Index.UN_TOKENIZED));
doc.add(new Field("description", "Illidium Space Modulator", Field.Store.YES, Field.Index.TOKENIZED));
writer.addDocument(doc);
writer.close();

View File

@ -113,6 +113,7 @@
<target name="test-compile" depends="compile" if="has.tests">
<javac destdir="${test.classes.dir}"
debug="${build.debug}"
deprecation="true"
includeAntRuntime="yes"
srcdir="src/test"
classpathref="test.classpath"