use of org.codice.ddf.spatial.geocoding.GeoEntryExtractor in project ddf by codice.
the class IndexInitializerTest method setUp.
@Before
public void setUp() throws Exception {
GeoEntryExtractor extractor = mock(GeoEntryExtractor.class);
indexer = mock(GeoEntryIndexer.class);
executor = mock(ExecutorService.class);
indexInitializer = new IndexInitializer(new Security());
indexInitializer.setExecutor(executor);
indexInitializer.setExtractor(extractor);
indexInitializer.setIndexer(indexer);
File dataDir = tempDir.newFolder("data");
geonamesZip = new File(dataDir, "default_geonames_data.zip");
geoIndexDir = new File(dataDir, "geonames-index");
indexInitializer.setDefaultGeoNamesDataPath(geonamesZip.getAbsolutePath());
}
Aggregations