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 org.apache.lucene.analysis.standard.StandardTokenizer;
|
||||
import org.apache.solr.SolrTestCaseJ4;
|
||||
import org.apache.solr.core.Config;
|
||||
import org.apache.solr.schema.IndexSchema;
|
||||
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.standard.StandardAnalyzer;
|
||||
import org.apache.lucene.util.Version;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
/**
|
||||
* Tests for luceneMatchVersion property for analyzers
|
||||
*/
|
||||
public class TestLuceneMatchVersion extends AbstractSolrTestCase {
|
||||
public class TestLuceneMatchVersion extends SolrTestCaseJ4 {
|
||||
|
||||
@Override
|
||||
public String getSchemaFile() {
|
||||
return "schema-luceneMatchVersion.xml";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSolrConfigFile() {
|
||||
return "solrconfig.xml";
|
||||
@BeforeClass
|
||||
public static void beforeClass() throws Exception {
|
||||
initCore("solrconfig.xml","schema-luceneMatchVersion.xml");
|
||||
}
|
||||
|
||||
// this must match the solrconfig.xml version for this test
|
||||
|
|
|
@ -16,23 +16,22 @@ package org.apache.solr.core;
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import org.apache.solr.SolrTestCaseJ4;
|
||||
import org.apache.solr.util.AbstractSolrTestCase;
|
||||
import org.apache.solr.search.QParserPlugin;
|
||||
import org.apache.solr.search.FooQParserPlugin;
|
||||
import org.apache.solr.search.ValueSourceParser;
|
||||
import org.junit.BeforeClass;
|
||||
|
||||
|
||||
/**
|
||||
* Test for https://issues.apache.org/jira/browse/SOLR-749
|
||||
*
|
||||
**/
|
||||
public class SOLR749Test extends AbstractSolrTestCase{
|
||||
public String getSchemaFile() {
|
||||
return "schema.xml";
|
||||
}
|
||||
|
||||
public String getSolrConfigFile() {
|
||||
return "solrconfig-SOLR-749.xml";
|
||||
public class SOLR749Test extends SolrTestCaseJ4 {
|
||||
@BeforeClass
|
||||
public static void beforeClass() throws Exception {
|
||||
initCore("solrconfig-SOLR-749.xml","schema.xml");
|
||||
}
|
||||
|
||||
public void testConstruction() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue