LUCENE-6945: rename TestParser to TestCoreParser

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1721526 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christine Poerschke 2015-12-23 11:38:27 +00:00
parent 0811245013
commit d1623d09e5
3 changed files with 5 additions and 5 deletions

View File

@ -197,7 +197,7 @@ Other
(Christine Poerschke)
* LUCENE-6945: factor out TestCorePlus(Queries|Extensions)Parser from
TestParser (Christine Poerschke)
TestParser, rename TestParser to TestCoreParser (Christine Poerschke)
======================= Lucene 5.4.0 =======================

View File

@ -45,7 +45,7 @@ import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
public class TestParser extends LuceneTestCase {
public class TestCoreParser extends LuceneTestCase {
final private static String defaultField = "contents";
private static Analyzer analyzer;
@ -62,7 +62,7 @@ public class TestParser extends LuceneTestCase {
coreParser = new CoreParser(defaultField, analyzer);
BufferedReader d = new BufferedReader(new InputStreamReader(
TestParser.class.getResourceAsStream("reuters21578.txt"), StandardCharsets.US_ASCII));
TestCoreParser.class.getResourceAsStream("reuters21578.txt"), StandardCharsets.US_ASCII));
dir = newDirectory();
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(analyzer));
String line = d.readLine();
@ -182,7 +182,7 @@ public class TestParser extends LuceneTestCase {
}
protected Query parse(String xmlFileName) throws ParserException, IOException {
InputStream xmlStream = TestParser.class.getResourceAsStream(xmlFileName);
InputStream xmlStream = TestCoreParser.class.getResourceAsStream(xmlFileName);
Query result = coreParser().parse(xmlStream);
xmlStream.close();
return result;

View File

@ -19,7 +19,7 @@ package org.apache.lucene.queryparser.xml;
import org.apache.lucene.search.Query;
public class TestCorePlusQueriesParser extends TestParser {
public class TestCorePlusQueriesParser extends TestCoreParser {
private CoreParser corePlusQueriesParser;