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/07/23 22:52:32 UTC

svn commit: r1364798 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/spatial/ lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java

Author: rmuir
Date: Mon Jul 23 20:52:32 2012
New Revision: 1364798

URL: http://svn.apache.org/viewvc?rev=1364798&view=rev
Log:
fix test to use TEST_VERSION_CURRENT (to unbreak branch_4x)

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/spatial/   (props changed)
    lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java

Modified: lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java?rev=1364798&r1=1364797&r2=1364798&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java (original)
+++ lucene/dev/branches/branch_4x/lucene/spatial/src/test/org/apache/lucene/spatial/SpatialExample.java Mon Jul 23 20:52:32 2012
@@ -17,7 +17,6 @@ package org.apache.lucene.spatial;
  * limitations under the License.
  */
 
-import com.carrotsearch.randomizedtesting.RandomizedTest;
 import com.spatial4j.core.context.SpatialContext;
 import com.spatial4j.core.context.simple.SimpleSpatialContext;
 import com.spatial4j.core.shape.Shape;
@@ -45,6 +44,7 @@ import org.apache.lucene.spatial.query.S
 import org.apache.lucene.spatial.query.SpatialOperation;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.store.RAMDirectory;
+import org.apache.lucene.util.LuceneTestCase;
 import org.apache.lucene.util.Version;
 
 import java.io.IOException;
@@ -53,7 +53,7 @@ import java.io.IOException;
  * This class serves as example code to show how to use the Lucene spatial
  * module.
  */
-public class SpatialExample extends RandomizedTest {
+public class SpatialExample extends LuceneTestCase {
 
   public static void main(String[] args) throws IOException {
     new SpatialExample().test();
@@ -100,7 +100,7 @@ public class SpatialExample extends Rand
   }
 
   private void indexPoints() throws IOException {
-    IndexWriterConfig iwConfig = new IndexWriterConfig(Version.LUCENE_50,null);
+    IndexWriterConfig iwConfig = new IndexWriterConfig(TEST_VERSION_CURRENT,null);
     IndexWriter indexWriter = new IndexWriter(directory, iwConfig);
 
     //Spatial4j is x-y order for arguments