this.elasticsearchRule = newElasticsearchRule().defaultEmbeddedElasticsearch();
this.elasticsearchRule.setLoadStrategyFactory(new IndexCreatingLoadStrategyFactory(Collections.singleton(INDEX_NAME)));
}
@Before
public void setUp() throws Exception {
<BUG>when(indexRangeService.getFrom(anyInt())).thenReturn(INDEX_RANGES);
metricRegistry = new MetricRegistry();</BUG>
searches = new Searches(new Configuration(), deflector, indexRangeService, client, metricRegistry);
}
@Test

this.elasticsearchRule = newElasticsearchRule().defaultEmbeddedElasticsearch();
this.elasticsearchRule.setLoadStrategyFactory(new IndexCreatingLoadStrategyFactory(Collections.singleton(INDEX_NAME)));
}
@Before
public void setUp() throws Exception {
when(indexRangeService.find(any(DateTime.class), any(DateTime.class))).thenReturn(INDEX_RANGES);
metricRegistry = new MetricRegistry();
searches = new Searches(new Configuration(), deflector, indexRangeService, client, metricRegistry);
}
@Test
