Apache Lucene open-source search software
link test-framework javadocs and fix warnings inside them
Robert Muire82776d3b412
diff --git a/lucene/build.xml b/lucene/build.xmlindex 4c9e1d50b2e..a364fd4c5a6 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -163,6 +163,7 @@<ul><li><a href="all/index.html">All</a></li><li><a href="core/index.html">Core</a></li>+ <li><a href="test-framework/index.html">Test Framework</a></li><li>Contrib packages:</li><ul>]]></echo>diff --git a/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java b/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.javaindex e8236993975..284ddeda0fb 100644--- a/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java+++ b/lucene/src/test-framework/org/apache/lucene/index/RandomIndexWriter.java@@ -24,6 +24,7 @@ import java.util.Random;import org.apache.lucene.analysis.Analyzer;import org.apache.lucene.analysis.MockAnalyzer;import org.apache.lucene.document.Document;+import org.apache.lucene.index.IndexWriter; // javadocimport org.apache.lucene.store.Directory;import org.apache.lucene.util.LuceneTestCase;import org.apache.lucene.util.Version;diff --git a/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.java b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.javaindex 242c244c442..d5d45bf1c2a 100644--- a/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.java+++ b/lucene/src/test-framework/org/apache/lucene/index/codecs/mocksep/MockSingleIntIndexInput.java@@ -26,7 +26,7 @@ import org.apache.lucene.store.IndexInput;import org.apache.lucene.util.CodecUtil;/** Reads IndexInputs written with {@link- * SingleIntIndexOutput}. NOTE: this class is just for+ * MockSingleIntIndexOutput}. NOTE: this class is just for* demonstration puprposes (it is a very slow way to read a* block of ints).*diff --git a/lucene/src/test-framework/org/apache/lucene/search/CheckHits.java b/lucene/src/test-framework/org/apache/lucene/search/CheckHits.javaindex fd6a8f8afd0..b250ac1250f 100644--- a/lucene/src/test-framework/org/apache/lucene/search/CheckHits.java+++ b/lucene/src/test-framework/org/apache/lucene/search/CheckHits.java@@ -268,7 +268,7 @@ public class CheckHits {* query corresponds with the true score.** @see ExplanationAsserter- * @see #checkExplanations(Query, String, Searcher, boolean) for a+ * @see #checkExplanations(Query, String, IndexSearcher, boolean) for a* "deep" testing of the explanation details.** @param query the query to testdiff --git a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.javaindex 65359b34dd8..b8bfbf79a76 100644--- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java+++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java@@ -83,9 +83,9 @@ import org.junit.runners.model.InitializationError;* <code>super.tearDown()</code>* </p>*- * @After - replaces setup- * @Before - replaces teardown- * @Test - any public method with this annotation is a test case, regardless+ * <code>@After</code> - replaces setup+ * <code>@Before</code> - replaces teardown+ * <code>@Test</code> - any public method with this annotation is a test case, regardless* of its name* <p>* <p>@@ -612,7 +612,7 @@ public abstract class LuceneTestCase extends Assert {* directly in the same scope as the IndexReader.* </p>*- * @see FieldCacheSanityChecker+ * @see org.apache.lucene.util.FieldCacheSanityChecker*/protected void assertSaneFieldCaches(final String msg) {final CacheEntry[] entries = FieldCache.DEFAULT.getCacheEntries();@@ -910,13 +910,13 @@ public abstract class LuceneTestCase extends Assert {}/** Returns a new field instance.- * See {@link #newField(String, String, Store, Index, TermVector)} for more information */+ * See {@link #newField(String, String, Field.Store, Field.Index, Field.TermVector)} for more information */public static Field newField(String name, String value, Index index) {return newField(random, name, value, index);}/** Returns a new field instance.- * See {@link #newField(String, String, Store, Index, TermVector)} for more information */+ * See {@link #newField(String, String, Field.Store, Field.Index, Field.TermVector)} for more information */public static Field newField(String name, String value, Store store, Index index) {return newField(random, name, value, store, index);}@@ -935,19 +935,19 @@ public abstract class LuceneTestCase extends Assert {}/** Returns a new field instance, using the specified random.- * See {@link #newField(String, String, Store, Index, TermVector)} for more information */+ * See {@link #newField(String, String, Field.Store, Field.Index, Field.TermVector)} for more information */public static Field newField(Random random, String name, String value, Index index) {return newField(random, name, value, Store.NO, index);}/** Returns a new field instance, using the specified random.- * See {@link #newField(String, String, Store, Index, TermVector)} for more information */+ * See {@link #newField(String, String, Field.Store, Field.Index, Field.TermVector)} for more information */public static Field newField(Random random, String name, String value, Store store, Index index) {return newField(random, name, value, store, index, TermVector.NO);}/** Returns a new field instance, using the specified random.- * See {@link #newField(String, String, Store, Index, TermVector)} for more information */+ * See {@link #newField(String, String, Field.Store, Field.Index, Field.TermVector)} for more information */public static Field newField(Random random, String name, String value, Store store, Index index, TermVector tv) {if (!index.isIndexed())return new Field(name, value, store, index);