lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r928177 - in /lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test: com/ org/apache/lucene/xmlparser/ org/apache/lucene/xmlparser/builders/
Date Sat, 27 Mar 2010 09:17:34 GMT
Author: uschindler
Date: Sat Mar 27 09:17:34 2010
New Revision: 928177

URL: http://svn.apache.org/viewvc?rev=928177&view=rev
Log:
LUCENE-2306: Fix wrong package names in tests and missing super.tearDown()

Added:
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/
      - copied from r928114, lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java
      - copied, changed from r928114, lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeFilterBuilderTestCase.java
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java
      - copied, changed from r928114, lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeQueryBuilderTestCase.java
Removed:
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/NumericRangeFilterBuilderTestCase.java
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/NumericRangeQueryBuilderTestCase.java
Modified:
    lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java

Modified: lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java?rev=928177&r1=928176&r2=928177&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java
(original)
+++ lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TestParser.java
Sat Mar 27 09:17:34 2010
@@ -93,7 +93,7 @@ public class TestParser extends LuceneTe
 		reader.close();
 		searcher.close();
 //		dir.close();
-		
+		super.tearDown();
 	}
 	public void testSimpleXML() throws ParserException, IOException
 	{

Copied: lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java
(from r928114, lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeFilterBuilderTestCase.java)
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java?p2=lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java&p1=lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeFilterBuilderTestCase.java&r1=928114&r2=928177&rev=928177&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeFilterBuilderTestCase.java
(original)
+++ lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeFilterBuilder.java
Sat Mar 27 09:17:34 2010
@@ -1,4 +1,4 @@
-package com.apache.lucene.xmlparser.builders;
+package org.apache.lucene.xmlparser.builders;
 
 /**
  * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -25,7 +25,7 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 
-import junit.framework.TestCase;
+import org.apache.lucene.util.LuceneTestCase;
 
 import org.apache.lucene.index.IndexReader;
 import org.apache.lucene.index.IndexWriter;
@@ -34,11 +34,10 @@ import org.apache.lucene.search.Filter;
 import org.apache.lucene.search.NumericRangeFilter;
 import org.apache.lucene.store.RAMDirectory;
 import org.apache.lucene.xmlparser.ParserException;
-import org.apache.lucene.xmlparser.builders.NumericRangeFilterBuilder;
 import org.w3c.dom.Document;
 import org.xml.sax.SAXException;
 
-public class NumericRangeFilterBuilderTestCase extends TestCase {
+public class TestNumericRangeFilterBuilder extends LuceneTestCase {
 
 	public void testGetFilterHandleNumericParseErrorStrict() throws Exception {
 		NumericRangeFilterBuilder filterBuilder = new NumericRangeFilterBuilder();

Copied: lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java
(from r928114, lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeQueryBuilderTestCase.java)
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java?p2=lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java&p1=lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeQueryBuilderTestCase.java&r1=928114&r2=928177&rev=928177&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/com/apache/lucene/xmlparser/builders/NumericRangeQueryBuilderTestCase.java
(original)
+++ lucene/dev/trunk/lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/builders/TestNumericRangeQueryBuilder.java
Sat Mar 27 09:17:34 2010
@@ -1,4 +1,4 @@
-package com.apache.lucene.xmlparser.builders;
+package org.apache.lucene.xmlparser.builders;
 
 /**
  * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -25,16 +25,15 @@ import javax.xml.parsers.DocumentBuilder
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 
-import junit.framework.TestCase;
+import org.apache.lucene.util.LuceneTestCase;
 
 import org.apache.lucene.search.NumericRangeQuery;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.xmlparser.ParserException;
-import org.apache.lucene.xmlparser.builders.NumericRangeQueryBuilder;
 import org.w3c.dom.Document;
 import org.xml.sax.SAXException;
 
-public class NumericRangeQueryBuilderTestCase extends TestCase {
+public class TestNumericRangeQueryBuilder extends LuceneTestCase {
 
 	public void testGetFilterHandleNumericParseErrorStrict() throws Exception {
 		NumericRangeQueryBuilder filterBuilder = new NumericRangeQueryBuilder();



Mime
View raw message