use of org.sonar.db.es.EsQueueDto in project sonarqube by SonarSource.
the class RecoveryIndexerTest method recent_records_are_not_recovered.
@Test
public void recent_records_are_not_recovered() {
EsQueueDto item = insertItem(FOO_TYPE, "f1");
SuccessfulFakeIndexer indexer = new SuccessfulFakeIndexer(FOO_TYPE);
// do not advance in time
underTest = newRecoveryIndexer(indexer);
underTest.recover();
assertThatQueueHasSize(1);
assertThat(indexer.called).isEmpty();
assertThatLogsDoNotContain(TRACE, "Elasticsearch recovery - processing 2 [foos/foo]");
assertThatLogsDoNotContain(INFO, "documents processed");
}
Aggregations