use of org.sonar.server.es.IndexingResult in project sonarqube by SonarSource.
the class ProjectMeasuresIndexerTest method update_index_when_project_key_is_updated.
@Test
public void update_index_when_project_key_is_updated() {
ComponentDto project = db.components().insertPrivateProject();
IndexingResult result = indexProject(project, PROJECT_KEY_UPDATE);
assertThatIndexContainsOnly(project);
assertThat(result.getTotal()).isOne();
assertThat(result.getSuccess()).isOne();
}
Aggregations