issueBuilder.setEffort(effortValue);
}
setNullable(dto.getLine(), issueBuilder::setLine);
+ setNullable(emptyToNull(dto.getChecksum()), issueBuilder::setHash);
completeIssueLocations(dto, issueBuilder);
issueBuilder.setAuthor(nullToEmpty(dto.getAuthorLogin()));
setNullable(dto.getIssueCreationDate(), issueBuilder::setCreationDate, DateUtils::formatDateTime);
IssueDto issue = IssueTesting.newDto(newRule(), file, project)
.setKee("82fd47d4-b650-4037-80bc-7b112bd4eac2")
.setEffort(10L)
+ .setLine(42)
+ .setChecksum("a227e508d6646b55a086ee11d63b21e9")
.setMessage("the message")
.setStatus(Issue.STATUS_RESOLVED)
.setResolution(Issue.RESOLUTION_FIXED)
session.commit();
issueIndexer.indexOnStartup(issueIndexer.getIndexTypes());
- ws.newRequest().execute()
- .assertJson(this.getClass(), "response_contains_all_fields_except_additional_fields.json");
+ ws.newRequest().execute().assertJson(this.getClass(), "response_contains_all_fields_except_additional_fields.json");
}
@Test
optional string project = 6;
optional string subProject = 7;
optional int32 line = 8;
+ optional string hash = 31;
optional sonarqube.ws.commons.TextRange textRange = 9;
repeated Flow flows = 10;
optional string resolution = 11;