Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -38,7 +38,7 @@
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;
Expand Down
Expand Up @@ -32,7 +32,7 @@
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;
Expand Down
Expand Up @@ -23,7 +23,7 @@
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);
Expand Down
Expand Up @@ -48,12 +48,12 @@
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 {
Expand Down
Expand Up @@ -59,6 +59,6 @@ public void testQueries() throws IOException {
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);
}
}