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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1358386 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-07-06 19:58:08 +00:00
parent 6104f180a1
commit fcfaf3f0f5
1 changed files with 2 additions and 1 deletions

View File

@ -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;