lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject svn commit: r1405532 - in /lucene.net/trunk/test/contrib/Spatial: Prefix/NtsPolygonTest.cs StrategyTestCase.cs
Date Sun, 04 Nov 2012 11:40:59 GMT
Author: synhershko
Date: Sun Nov  4 11:40:59 2012
New Revision: 1405532

URL: http://svn.apache.org/viewvc?rev=1405532&view=rev
Log:
Fixing bad merge

Modified:
    lucene.net/trunk/test/contrib/Spatial/Prefix/NtsPolygonTest.cs
    lucene.net/trunk/test/contrib/Spatial/StrategyTestCase.cs

Modified: lucene.net/trunk/test/contrib/Spatial/Prefix/NtsPolygonTest.cs
URL: http://svn.apache.org/viewvc/lucene.net/trunk/test/contrib/Spatial/Prefix/NtsPolygonTest.cs?rev=1405532&r1=1405531&r2=1405532&view=diff
==============================================================================
--- lucene.net/trunk/test/contrib/Spatial/Prefix/NtsPolygonTest.cs (original)
+++ lucene.net/trunk/test/contrib/Spatial/Prefix/NtsPolygonTest.cs Sun Nov  4 11:40:59 2012
@@ -41,7 +41,7 @@ namespace Lucene.Net.Contrib.Spatial.Tes
                                               };
 
 			ctx = NtsSpatialContext.GEO;
-			List<Document> testDocuments = getDocumentsNts(sdIterator.GetEnumerator());
+			List<Document> testDocuments = getDocuments(sdIterator.GetEnumerator());
 			addDocumentsAndCommit(testDocuments);
 			verifyDocumentsIndexed(testDocuments.Count);
 

Modified: lucene.net/trunk/test/contrib/Spatial/StrategyTestCase.cs
URL: http://svn.apache.org/viewvc/lucene.net/trunk/test/contrib/Spatial/StrategyTestCase.cs?rev=1405532&r1=1405531&r2=1405532&view=diff
==============================================================================
--- lucene.net/trunk/test/contrib/Spatial/StrategyTestCase.cs (original)
+++ lucene.net/trunk/test/contrib/Spatial/StrategyTestCase.cs Sun Nov  4 11:40:59 2012
@@ -97,7 +97,7 @@ namespace Lucene.Net.Contrib.Spatial.Tes
                 var document = new Document();
                 document.Add(new Field("id", data.id, Field.Store.YES, Field.Index.ANALYZED));
                 document.Add(new Field("name", data.name, Field.Store.YES, Field.Index.ANALYZED));
-                Shape shape = new ShapeReadWriter(ctx).ReadShape(data.shape);
+                Shape shape = ctx.ReadShape(data.shape);
                 shape = convertShapeFromGetDocuments(shape);
                 if (shape != null)
                 {
@@ -115,13 +115,6 @@ namespace Lucene.Net.Contrib.Spatial.Tes
             return documents;
         }
 
-
-                documents.Add(document);
-            }
-            return documents;
-        }
-
-
         protected virtual Shape convertShapeFromGetDocuments(Shape shape)
         {
             return shape;



Mime
View raw message