Apache Lucene open-source search software
add clover hack
Robert Muir007b8d6a82a7
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java b/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.javaindex 92b97411534..b30026c0ce5 100644--- a/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java+++ b/lucene/spatial/src/test/org/apache/lucene/spatial/PortedSolr3Test.java@@ -59,22 +59,39 @@ public class PortedSolr3Test extends StrategyTestCase {grid = new GeohashPrefixTree(ctx,12);strategy = new RecursivePrefixTreeStrategy(grid, "recursive_geohash");- ctorArgs.add(new Object[]{strategy});+ ctorArgs.add(new Object[]{new Param(strategy, "recursive_geohash")});grid = new QuadPrefixTree(ctx,25);strategy = new RecursivePrefixTreeStrategy(grid, "recursive_quad");- ctorArgs.add(new Object[]{strategy});+ ctorArgs.add(new Object[]{new Param(strategy, "recursive_quad")});grid = new GeohashPrefixTree(ctx,12);strategy = new TermQueryPrefixTreeStrategy(grid, "termquery_geohash");- ctorArgs.add(new Object[]{strategy});+ ctorArgs.add(new Object[]{new Param(strategy, "termquery_geohash")});return ctorArgs;}++ // this is a hack for clover!+ static class Param {+ SpatialStrategy strategy;+ String description;++ Param(SpatialStrategy strategy, String description) {+ this.strategy = strategy;+ this.description = description;+ }++ @Override+ public String toString() {+ return description;+ }+ }// private String fieldName;- public PortedSolr3Test(SpatialStrategy strategy) {+ public PortedSolr3Test(Param param) {+ SpatialStrategy strategy = param.strategy;this.ctx = strategy.getSpatialContext();this.strategy = strategy;}