Apache Solr open-source search software
Rename *Test files which are no unit tests to make "ant test" work. See LUCENE-465.
Daniel Naber4fd74d2554a0
diff --git a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTest.java b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTst.javasimilarity index 97%rename from contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTest.javarename to contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTst.javaindex 9aa05616c7d..7e9ae63721f 100644--- a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTest.java+++ b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/BooleanQueryTst.java@@ -9,7 +9,7 @@ import org.apache.lucene.queryParser.surround.parser.QueryParser;import junit.framework.TestCase;-public class BooleanQueryTest {+public class BooleanQueryTst {String queryText;final int[] expectedDocNrs;SingleFieldTestDb dBase;@@ -18,7 +18,7 @@ public class BooleanQueryTest {BasicQueryFactory qf;boolean verbose = true;- public BooleanQueryTest(+ public BooleanQueryTst(String queryText,int[] expectedDocNrs,SingleFieldTestDb dBase,diff --git a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTest.java b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTst.javasimilarity index 87%rename from contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTest.javarename to contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTst.javaindex e88495e63b7..7bd73b8d0b2 100644--- a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTest.java+++ b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/ExceptionQueryTst.java@@ -4,11 +4,11 @@ import org.apache.lucene.queryParser.surround.parser.ParseException;import org.apache.lucene.queryParser.surround.parser.QueryParser;-public class ExceptionQueryTest {+public class ExceptionQueryTst {private String queryText;private boolean verbose;- public ExceptionQueryTest(String queryText, boolean verbose) {+ public ExceptionQueryTst(String queryText, boolean verbose) {this.queryText = queryText;this.verbose = verbose;}@@ -40,7 +40,7 @@ public class ExceptionQueryTest {public static String getFailQueries(String[] exceptionQueries, boolean verbose) {StringBuffer failQueries = new StringBuffer();for (int i = 0; i < exceptionQueries.length; i++ ) {- new ExceptionQueryTest( exceptionQueries[i], verbose).doTest(failQueries);+ new ExceptionQueryTst( exceptionQueries[i], verbose).doTest(failQueries);}return failQueries.toString();}diff --git a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test01Exceptions.java b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test01Exceptions.javaindex 27976cf19f9..39a320d3b16 100644--- a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test01Exceptions.java+++ b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test01Exceptions.java@@ -41,7 +41,7 @@ public class Test01Exceptions extends TestCase {};public void test01Exceptions() throws Exception {- String m = ExceptionQueryTest.getFailQueries(exceptionQueries, verbose);+ String m = ExceptionQueryTst.getFailQueries(exceptionQueries, verbose);if (m.length() > 0) {fail("No ParseException for:\n" + m);}diff --git a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test02Boolean.java b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test02Boolean.javaindex c79d5350f26..41900921df1 100644--- a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test02Boolean.java+++ b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test02Boolean.java@@ -25,7 +25,7 @@ public class Test02Boolean extends TestCase {SingleFieldTestDb db1 = new SingleFieldTestDb(docs1, fieldName);public void normalTest1(String query, int[] expdnrs) throws Exception {- BooleanQueryTest bqt = new BooleanQueryTest( query, expdnrs, db1, fieldName, this,+ BooleanQueryTst bqt = new BooleanQueryTst( query, expdnrs, db1, fieldName, this,new BasicQueryFactory(maxBasicQueries));bqt.setVerbose(verbose);bqt.doTest();diff --git a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test03Distance.java b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test03Distance.javaindex 011046f01d2..98543b3190a 100644--- a/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test03Distance.java+++ b/contrib/surround/src/test/org/apache/lucene/queryParser/surround/query/Test03Distance.java@@ -24,7 +24,7 @@ public class Test03Distance extends TestCase {};public void test00Exceptions() throws Exception {- String m = ExceptionQueryTest.getFailQueries(exceptionQueries, verbose);+ String m = ExceptionQueryTst.getFailQueries(exceptionQueries, verbose);if (m.length() > 0) {fail("No ParseException for:\n" + m);}@@ -51,14 +51,14 @@ public class Test03Distance extends TestCase {SingleFieldTestDb db2 = new SingleFieldTestDb(docs2, fieldName);public void distanceTest1(String query, int[] expdnrs) throws Exception {- BooleanQueryTest bqt = new BooleanQueryTest( query, expdnrs, db1, fieldName, this,+ BooleanQueryTst bqt = new BooleanQueryTst( query, expdnrs, db1, fieldName, this,new BasicQueryFactory(maxBasicQueries));bqt.setVerbose(verbose);bqt.doTest();}public void distanceTest2(String query, int[] expdnrs) throws Exception {- BooleanQueryTest bqt = new BooleanQueryTest( query, expdnrs, db2, fieldName, this,+ BooleanQueryTst bqt = new BooleanQueryTst( query, expdnrs, db2, fieldName, this,new BasicQueryFactory(maxBasicQueries));bqt.setVerbose(verbose);bqt.doTest();