LUCENE-8626: standardise 3 more Lucene test names (#2440)

This commit is contained in:
Christine Poerschke 2021-03-08 13:21:52 +00:00 committed by GitHub
parent e9ddaaca51
commit d53b3da0ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
public class BaseTestRangeFilter extends LuceneTestCase {
public class TestBaseRangeFilter extends LuceneTestCase {
public static final boolean F = false;
public static final boolean T = true;

View File

@ -32,7 +32,7 @@ import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
public class TestMultiTermConstantScore extends BaseTestRangeFilter {
public class TestMultiTermConstantScore extends TestBaseRangeFilter {
/** threshold for comparing floats */
public static final float SCORE_COMP_THRESH = 1e-6f;

View File

@ -23,7 +23,7 @@ import java.util.stream.Collectors;
import java.util.stream.LongStream;
import org.apache.lucene.util.LuceneTestCase;
public class LongHashSetTests extends LuceneTestCase {
public class TestLongHashSet extends LuceneTestCase {
private void assertEquals(Set<Long> set1, LongHashSet set2) {
LuceneTestCase.assertEquals(set1, set2);

View File

@ -48,12 +48,12 @@ import org.locationtech.spatial4j.shape.Point;
import org.locationtech.spatial4j.shape.Shape;
/** This class serves as example code to show how to use the Lucene spatial module. */
public class SpatialExample extends LuceneTestCase {
public class TestSpatialExample extends LuceneTestCase {
// Note: Test invoked via TestTestFramework.spatialExample()
public static void main(String[] args) throws Exception {
new SpatialExample().test();
new TestSpatialExample().test();
}
public void test() throws Exception {

View File

@ -59,6 +59,6 @@ public class TestTestFramework extends LuceneTestCase {
public void spatialExample() throws Exception {
// kind of a hack so that SpatialExample is tested despite
// it not starting or ending with "Test".
SpatialExample.main(null);
TestSpatialExample.main(null);
}
}