batchSession.enqueue(new InsertDto<IssueDto>(IndexDefinition.ISSUES.getIndexType(), newIssue(issueIndex, file, project, rules.next()), false));
counter.getAndIncrement();
}
}
}
batchSession.enqueue(new RefreshIndex(IndexDefinition.ISSUES.getIndexType()));
batchSession.commit();
long stop = System.currentTimeMillis();
progressTask.log();
assertThat(issueIndex.countAll()).isEqualTo(ISSUE_COUNT);