mirror of https://github.com/apache/lucene.git
tests: convert to junit4
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1024486 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d501658c1a
commit
45b9c24ee9
|
@ -20,6 +20,7 @@ import java.io.StringReader;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.standard.StandardTokenizer;
|
import org.apache.lucene.analysis.standard.StandardTokenizer;
|
||||||
|
import org.apache.solr.SolrTestCaseJ4;
|
||||||
import org.apache.solr.core.Config;
|
import org.apache.solr.core.Config;
|
||||||
import org.apache.solr.schema.IndexSchema;
|
import org.apache.solr.schema.IndexSchema;
|
||||||
import org.apache.solr.schema.FieldType;
|
import org.apache.solr.schema.FieldType;
|
||||||
|
@ -27,20 +28,16 @@ import org.apache.solr.util.AbstractSolrTestCase;
|
||||||
import org.apache.lucene.analysis.Analyzer;
|
import org.apache.lucene.analysis.Analyzer;
|
||||||
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
||||||
import org.apache.lucene.util.Version;
|
import org.apache.lucene.util.Version;
|
||||||
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests for luceneMatchVersion property for analyzers
|
* Tests for luceneMatchVersion property for analyzers
|
||||||
*/
|
*/
|
||||||
public class TestLuceneMatchVersion extends AbstractSolrTestCase {
|
public class TestLuceneMatchVersion extends SolrTestCaseJ4 {
|
||||||
|
|
||||||
@Override
|
@BeforeClass
|
||||||
public String getSchemaFile() {
|
public static void beforeClass() throws Exception {
|
||||||
return "schema-luceneMatchVersion.xml";
|
initCore("solrconfig.xml","schema-luceneMatchVersion.xml");
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getSolrConfigFile() {
|
|
||||||
return "solrconfig.xml";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this must match the solrconfig.xml version for this test
|
// this must match the solrconfig.xml version for this test
|
||||||
|
|
|
@ -16,23 +16,22 @@ package org.apache.solr.core;
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import org.apache.solr.SolrTestCaseJ4;
|
||||||
import org.apache.solr.util.AbstractSolrTestCase;
|
import org.apache.solr.util.AbstractSolrTestCase;
|
||||||
import org.apache.solr.search.QParserPlugin;
|
import org.apache.solr.search.QParserPlugin;
|
||||||
import org.apache.solr.search.FooQParserPlugin;
|
import org.apache.solr.search.FooQParserPlugin;
|
||||||
import org.apache.solr.search.ValueSourceParser;
|
import org.apache.solr.search.ValueSourceParser;
|
||||||
|
import org.junit.BeforeClass;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test for https://issues.apache.org/jira/browse/SOLR-749
|
* Test for https://issues.apache.org/jira/browse/SOLR-749
|
||||||
*
|
*
|
||||||
**/
|
**/
|
||||||
public class SOLR749Test extends AbstractSolrTestCase{
|
public class SOLR749Test extends SolrTestCaseJ4 {
|
||||||
public String getSchemaFile() {
|
@BeforeClass
|
||||||
return "schema.xml";
|
public static void beforeClass() throws Exception {
|
||||||
}
|
initCore("solrconfig-SOLR-749.xml","schema.xml");
|
||||||
|
|
||||||
public String getSolrConfigFile() {
|
|
||||||
return "solrconfig-SOLR-749.xml";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testConstruction() throws Exception {
|
public void testConstruction() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue