mirror of https://github.com/apache/lucene.git
LUCENE-5858: remove some test cruft
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5858@1621764 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dcadf7ef6f
commit
5afc7cda1f
|
@ -46,7 +46,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
/**
|
||||
* trivial test of CollationDocValuesField
|
||||
*/
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public class TestCollationDocValuesField extends LuceneTestCase {
|
||||
|
||||
public void testBasic() throws Exception {
|
||||
|
|
|
@ -46,7 +46,6 @@ import com.ibm.icu.util.ULocale;
|
|||
/**
|
||||
* trivial test of ICUCollationDocValuesField
|
||||
*/
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public class TestICUCollationDocValuesField extends LuceneTestCase {
|
||||
|
||||
public void testBasic() throws Exception {
|
||||
|
|
|
@ -34,7 +34,6 @@ import java.io.Reader;
|
|||
* Testcase for {@link SimpleNaiveBayesClassifier}
|
||||
*/
|
||||
// TODO : eventually remove this if / when fallback methods exist for all un-supportable codec methods (see LUCENE-4872)
|
||||
@LuceneTestCase.SuppressCodecs("Lucene3x")
|
||||
public class SimpleNaiveBayesClassifierTest extends ClassificationTestBase<BytesRef> {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -18,7 +18,6 @@ import org.apache.lucene.util.Bits;
|
|||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IOUtils;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
import org.apache.lucene.util.TestUtil;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
||||
|
@ -40,7 +39,6 @@ import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
@SuppressCodecs({"Lucene40","Lucene41","Lucene42","Lucene45"})
|
||||
public class TestMixedDocValuesUpdates extends LuceneTestCase {
|
||||
|
||||
public void testManyReopensAndFields() throws Exception {
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.apache.lucene.util.Bits;
|
|||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IOUtils;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
import org.apache.lucene.util.TestUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -51,7 +50,6 @@ import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
@SuppressCodecs({"Lucene40","Lucene41","Lucene42","Lucene45"})
|
||||
@SuppressWarnings("resource")
|
||||
public class TestNumericDocValuesUpdates extends LuceneTestCase {
|
||||
|
||||
|
|
|
@ -40,7 +40,6 @@ import org.apache.lucene.util.UnicodeUtil;
|
|||
/**
|
||||
* Tests the DocTermOrdsRangeFilter
|
||||
*/
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // needs SORTED_SET
|
||||
public class TestDocTermOrdsRangeFilter extends LuceneTestCase {
|
||||
protected IndexSearcher searcher1;
|
||||
protected IndexSearcher searcher2;
|
||||
|
|
|
@ -42,7 +42,6 @@ import org.apache.lucene.util.UnicodeUtil;
|
|||
/**
|
||||
* Tests the DocTermOrdsRewriteMethod
|
||||
*/
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // needs SORTED_SET
|
||||
public class TestDocTermOrdsRewriteMethod extends LuceneTestCase {
|
||||
protected IndexSearcher searcher1;
|
||||
protected IndexSearcher searcher2;
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
/**
|
||||
*
|
||||
*/
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // suppress codecs without missing
|
||||
public class TestFieldValueFilter extends LuceneTestCase {
|
||||
|
||||
public void testFieldValueFilterNoValue() throws IOException {
|
||||
|
|
|
@ -48,7 +48,6 @@ import org.junit.AfterClass;
|
|||
import org.junit.BeforeClass;
|
||||
|
||||
/** tests BooleanScorer2's minShouldMatch */
|
||||
@SuppressCodecs({"Lucene40", "Lucene41"})
|
||||
public class TestMinShouldMatch2 extends LuceneTestCase {
|
||||
static Directory dir;
|
||||
static DirectoryReader r;
|
||||
|
|
|
@ -48,7 +48,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
* |
|
||||
* \./
|
||||
*/
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // avoid codecs that don't support "missing"
|
||||
public class TestSort extends LuceneTestCase {
|
||||
|
||||
/** Tests sorting on type string */
|
||||
|
|
|
@ -30,8 +30,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
import org.apache.lucene.util.NumericUtils;
|
||||
|
||||
/** Simple tests for SortedNumericSortField */
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42", "Lucene45", "Lucene46"})
|
||||
// avoid codecs that don't support sortednumeric
|
||||
public class TestSortedNumericSortField extends LuceneTestCase {
|
||||
|
||||
public void testEmptyIndex() throws Exception {
|
||||
|
|
|
@ -30,7 +30,6 @@ import org.apache.lucene.util.LuceneTestCase;
|
|||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
|
||||
/** Simple tests for SortedSetSortField, indexing the sortedset up front */
|
||||
@SuppressCodecs({"Lucene40", "Lucene41"}) // avoid codecs that don't support sortedset
|
||||
public class TestSortedSetSortField extends LuceneTestCase {
|
||||
|
||||
public void testEmptyIndex() throws Exception {
|
||||
|
|
|
@ -23,7 +23,6 @@ import org.apache.lucene.search.TopDocs;
|
|||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public class TestDistanceFacetsExample extends LuceneTestCase {
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public class TestRangeFacetsExample extends LuceneTestCase {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -27,7 +27,6 @@ import org.junit.Test;
|
|||
|
||||
|
||||
// We require sorted set DVs:
|
||||
@SuppressCodecs({"Lucene40", "Lucene41"})
|
||||
public class TestSimpleSortedSetFacetsExample extends LuceneTestCase {
|
||||
|
||||
@Test
|
||||
|
|
|
@ -37,7 +37,6 @@ import org.apache.lucene.store.Directory;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public class TestExpressionValueSource extends LuceneTestCase {
|
||||
DirectoryReader reader;
|
||||
Directory dir;
|
||||
|
|
|
@ -58,7 +58,6 @@ import org.apache.lucene.util.mutable.MutableValue;
|
|||
import org.apache.lucene.util.mutable.MutableValueStr;
|
||||
|
||||
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // we need missing support... i think?
|
||||
public class DistinctValuesCollectorTest extends AbstractGroupingTestCase {
|
||||
|
||||
private final static NullComparator nullComparator = new NullComparator();
|
||||
|
|
|
@ -52,8 +52,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
import org.apache.lucene.util.TestUtil;
|
||||
|
||||
|
||||
// Need SSDV, ord=-1 for missing:
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"})
|
||||
public class GroupFacetCollectorTest extends AbstractGroupingTestCase {
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
|
|
|
@ -41,7 +41,6 @@ import org.apache.lucene.search.grouping.term.TermSecondPassGroupingCollector;
|
|||
import org.apache.lucene.store.Directory;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
import org.apache.lucene.util.TestUtil;
|
||||
import org.apache.lucene.util.mutable.MutableValue;
|
||||
import org.apache.lucene.util.mutable.MutableValueStr;
|
||||
|
@ -55,7 +54,6 @@ import java.util.*;
|
|||
// - test ties
|
||||
// - test compound sort
|
||||
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // we need missing support... i think?
|
||||
public class TestGrouping extends LuceneTestCase {
|
||||
|
||||
public void testBasic() throws Exception {
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.apache.lucene.store.Directory;
|
|||
import org.apache.lucene.util.*;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // needs working "missing"
|
||||
public class TestBlockJoin extends LuceneTestCase {
|
||||
|
||||
// One resume...
|
||||
|
|
|
@ -72,7 +72,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
import org.apache.lucene.util.TestUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
@SuppressCodecs({"Lucene40", "Lucene41", "Lucene42"}) // we need SortedSet, docsWithField
|
||||
public class TestJoinUtil extends LuceneTestCase {
|
||||
|
||||
public void testSimple() throws Exception {
|
||||
|
|
|
@ -31,7 +31,6 @@ import org.apache.lucene.util.BytesRef;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||
|
||||
@SuppressCodecs({"Lucene40", "Lucene41"}) // avoid codecs that don't support sortedset
|
||||
public class TestSortedSetFieldSource extends LuceneTestCase {
|
||||
public void testSimple() throws Exception {
|
||||
Directory dir = newDirectory();
|
||||
|
|
|
@ -45,7 +45,6 @@ import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
|||
|
||||
/**
|
||||
*/
|
||||
@SuppressCodecs("Lucene3x") // binary terms
|
||||
public class TestAnalyzingQueryParser extends LuceneTestCase {
|
||||
private final static String FIELD = "field";
|
||||
|
||||
|
|
|
@ -35,7 +35,6 @@ import org.eclipse.jetty.util.ssl.SslContextFactory;
|
|||
import org.eclipse.jetty.util.thread.QueuedThreadPool;
|
||||
import org.junit.AfterClass;
|
||||
|
||||
@SuppressCodecs("Lucene3x")
|
||||
public abstract class ReplicatorTestCase extends LuceneTestCase {
|
||||
|
||||
private static HttpClientConnectionManager clientConnectionManager;
|
||||
|
|
Loading…
Reference in New Issue