lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject svn commit: r1721526 - in /lucene/dev/trunk/lucene: ./ queryparser/src/test/org/apache/lucene/queryparser/xml/
Date Wed, 23 Dec 2015 11:38:28 GMT
Author: cpoerschke
Date: Wed Dec 23 11:38:27 2015
New Revision: 1721526

URL: http://svn.apache.org/viewvc?rev=1721526&view=rev
Log:
LUCENE-6945: rename TestParser to TestCoreParser

Added:
    lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
      - copied, changed from r1721525, lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java
Removed:
    lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java
Modified:
    lucene/dev/trunk/lucene/CHANGES.txt
    lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java

Modified: lucene/dev/trunk/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/CHANGES.txt?rev=1721526&r1=1721525&r2=1721526&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/CHANGES.txt (original)
+++ lucene/dev/trunk/lucene/CHANGES.txt Wed Dec 23 11:38:27 2015
@@ -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 =======================
 

Copied: lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
(from r1721525, lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java)
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java?p2=lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java&p1=lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java&r1=1721525&r2=1721526&rev=1721526&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestParser.java
(original)
+++ lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java
Wed Dec 23 11:38:27 2015
@@ -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 LuceneTe
     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 LuceneTe
   }
 
   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;

Modified: lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java?rev=1721526&r1=1721525&r2=1721526&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java
(original)
+++ lucene/dev/trunk/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java
Wed Dec 23 11:38:27 2015
@@ -19,7 +19,7 @@ package org.apache.lucene.queryparser.xm
 
 import org.apache.lucene.search.Query;
 
-public class TestCorePlusQueriesParser extends TestParser {
+public class TestCorePlusQueriesParser extends TestCoreParser {
 
   private CoreParser corePlusQueriesParser;
 



Mime
View raw message