import static org.fest.assertions.Assertions.assertThat;
/**
- * Test persistence in db and indexation in es (--> integration of daos and indexes)
+ * Test persistence in db and indexation in es (--> integration of DAOs and Indexes)
*/
public class RuleDataMediumTest {
public void clearIndexes() {
LOG.info("Truncate es indices");
Client client = esNode.client();
- client.prepareDeleteByQuery(
- client.admin().cluster().prepareState().get().getState().getMetaData().concreteAllIndices()
- ).setQuery(QueryBuilders.matchAllQuery()).get();
+ client.prepareDeleteByQuery(client.admin().cluster().prepareState().get()
+ .getState().getMetaData().concreteAllIndices())
+ .setQuery(QueryBuilders.matchAllQuery())
+ .get();
}
}