mirror of https://github.com/apache/lucene.git
link test-framework javadocs and fix warnings inside them
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1076311 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e85af28991
commit
e82776d3b4
|
@ -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>
|
||||
|
|
|
@ -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; // javadoc
|
||||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.Version;
|
||||
|
|
|
@ -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).
|
||||
*
|
||||
|
|
|
@ -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 test
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue