Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bobo-contrib: Test cleanup

  • Loading branch information...
commit a198b40b1a6f1b12e3ce0135028509c7a664ae0e 1 parent ca3d7db
@gcooney gcooney authored
View
7 bobo-contrib/test/com/browseengine/bobo/geosearch/solo/search/impl/GeoOnlySearcherTest.java
@@ -24,9 +24,7 @@
import com.browseengine.bobo.geosearch.impl.GeoConverter;
import com.browseengine.bobo.geosearch.index.impl.GeoSegmentReader;
import com.browseengine.bobo.geosearch.query.GeoQuery;
-import com.browseengine.bobo.geosearch.score.IComputeDistance;
import com.browseengine.bobo.geosearch.score.impl.Conversions;
-import com.browseengine.bobo.geosearch.score.impl.HaversineComputeDistance;
import com.browseengine.bobo.geosearch.solo.bo.IDGeoRecord;
/**
@@ -48,8 +46,6 @@
private GeoSegmentReader<IDGeoRecord> mockGeoSegmentReader;
private IGeoConverter geoConverter;
- private IComputeDistance computeDistance;
-
@SuppressWarnings("unchecked")
@Before
public void setUp() throws IOException {
@@ -60,7 +56,6 @@ public void setUp() throws IOException {
mockGeoSegmentReader = context.mock(GeoSegmentReader.class);
geoConverter = new GeoConverter();
- computeDistance = new HaversineComputeDistance();
searcher = new GeoOnlySearcher(config, directory, indexName) {
@Override
@@ -118,7 +113,6 @@ private void searchAndVerify_allHitsInRange(double centroidLat, double centroidL
assertNotNull("Expected hit at index " + index + " is null", expectedHit);
assertNotNull("Hit at index " + index + " is null", actualHit);
assertEquals("Hit at index " + index + " has wrong id", new String(expectedHit.id), new String(actualHit.uuid));
- //TODO: validate score?
index++;
}
}
@@ -155,7 +149,6 @@ private void searchAndVerify_allHitsInRange(double centroidLat, double centroidL
// return hits.iterator();
// }
-
private IDGeoRecord buildMinRecord(double centroidLong, double centroidLat, float rangeInMiles,
byte[] uuid) {
double rangeInkm = Conversions.mi2km(rangeInMiles);
Please sign in to comment.
Something went wrong with that request. Please try again.