use of org.sonar.scanner.issue.tracking.FileHashes in project sonarqube by SonarSource.
the class TrackedIssueTest method hashes.
@Test
public void hashes() {
String[] hashArr = new String[] { "hash1", "hash2", "hash3" };
FileHashes hashes = FileHashes.create(hashArr);
TrackedIssue issue = new TrackedIssue(hashes);
issue.setStartLine(1);
assertThat(issue.getLineHash()).isEqualTo("hash1");
}
Aggregations