public void destroyAllKillsAllIndexRanges() throws Exception {
indexRangeService.destroyAll();
final RefreshRequest refreshRequest = client.admin().indices().prepareRefresh().request();
final RefreshResponse refreshResponse = client.admin().indices().refresh(refreshRequest).actionGet();
assumeTrue(refreshResponse.getFailedShards() == 0);
<BUG>assertThat(indexRangeService.getFrom(0)).isEmpty();
</BUG>
}
@Test
@UsingDataSet(loadStrategy = LoadStrategyEnum.DELETE_ALL)

public void destroyAllKillsAllIndexRanges() throws Exception {
indexRangeService.destroyAll();
final RefreshRequest refreshRequest = client.admin().indices().prepareRefresh().request();
final RefreshResponse refreshResponse = client.admin().indices().refresh(refreshRequest).actionGet();
assumeTrue(refreshResponse.getFailedShards() == 0);
assertThat(indexRangeService.findAll()).isEmpty();
}
@Test
@UsingDataSet(loadStrategy = LoadStrategyEnum.DELETE_ALL)
