Skip to content

Apache Lucene open-source search software

also add a nice param name 'strategy' instead of p0

Robert Muirfcfaf3f0f5da
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java b/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java
index b30026c0ce5..a4c4201895c 100644
--- a/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java
+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java
@@ -17,6 +17,7 @@ package org.apache.lucene.spatial;
* limitations under the License.
*/
+import com.carrotsearch.randomizedtesting.annotations.Name;
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
import com.spatial4j.core.context.SpatialContext;
import com.spatial4j.core.context.simple.SimpleSpatialContext;
@@ -90,7 +91,7 @@ public class PortedSolr3Test extends StrategyTestCase {
// private String fieldName;
- public PortedSolr3Test(Param param) {
+ public PortedSolr3Test(@Name("strategy") Param param) {
SpatialStrategy strategy = param.strategy;
this.ctx = strategy.getSpatialContext();
this.strategy = strategy;