You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/03/14 01:31:28 UTC

svn commit: r1300426 - in /lucene/dev/trunk/modules/spatial: build.xml src/test/org/apache/lucene/spatial/SpatialTestCase.java

Author: rmuir
Date: Wed Mar 14 00:31:28 2012
New Revision: 1300426

URL: http://svn.apache.org/viewvc?rev=1300426&view=rev
Log:
LUCENE-3795: use MockAnalyzer for testing

Modified:
    lucene/dev/trunk/modules/spatial/build.xml
    lucene/dev/trunk/modules/spatial/src/test/org/apache/lucene/spatial/SpatialTestCase.java

Modified: lucene/dev/trunk/modules/spatial/build.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/spatial/build.xml?rev=1300426&r1=1300425&r2=1300426&view=diff
==============================================================================
--- lucene/dev/trunk/modules/spatial/build.xml (original)
+++ lucene/dev/trunk/modules/spatial/build.xml Wed Mar 14 00:31:28 2012
@@ -28,7 +28,6 @@
   <path id="test.classpath">
     <path refid="test.base.classpath" />
     <path refid="base.classpath"/>
-    <pathelement path="${analyzers-common.jar}" />
     <pathelement path="src/test-files" />
   </path>
 
@@ -36,6 +35,6 @@
   <target name="init" depends="contrib-build.init"/>
   <target name="dist-maven" depends="jar-core,javadocs,common.dist-maven"/>
   <target name="compile" depends="jar-queries,common.compile-core" />
-  <target name="test" depends="jar-analyzers-common,compile-test,validate,junit-mkdir,junit-sequential,junit-parallel" description="Runs unit tests"/>
+  <target name="test" depends="compile-test,validate,junit-mkdir,junit-sequential,junit-parallel" description="Runs unit tests"/>
 
 </project>

Modified: lucene/dev/trunk/modules/spatial/src/test/org/apache/lucene/spatial/SpatialTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/spatial/src/test/org/apache/lucene/spatial/SpatialTestCase.java?rev=1300426&r1=1300425&r2=1300426&view=diff
==============================================================================
--- lucene/dev/trunk/modules/spatial/src/test/org/apache/lucene/spatial/SpatialTestCase.java (original)
+++ lucene/dev/trunk/modules/spatial/src/test/org/apache/lucene/spatial/SpatialTestCase.java Wed Mar 14 00:31:28 2012
@@ -17,7 +17,7 @@
 
 package org.apache.lucene.spatial;
 
-import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
+import org.apache.lucene.analysis.MockAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.index.DirectoryReader;
 import org.apache.lucene.index.IndexWriter;
@@ -49,7 +49,7 @@ public abstract class SpatialTestCase ex
 
     directory = newDirectory();
 
-    IndexWriterConfig writerConfig = newIndexWriterConfig(random, TEST_VERSION_CURRENT, new WhitespaceAnalyzer(TEST_VERSION_CURRENT));
+    IndexWriterConfig writerConfig = newIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer(random));
     indexWriter = new IndexWriter(directory, writerConfig);
   }