use of com.google.gerrit.entities.Comment in project gerrit by GerritCodeReview.
the class CommentThreadTest method threadCanBeResolved.
@Test
public void threadCanBeResolved() {
HumanComment root = resolved(createComment("root"));
CommentThread<Comment> commentThread = CommentThread.builder().addComment(root).build();
assertThat(commentThread.unresolved()).isFalse();
}
use of com.google.gerrit.entities.Comment in project gerrit by GerritCodeReview.
the class CommentThreadTest method lastCommentInThreadDeterminesUnresolvedStatus.
@Test
public void lastCommentInThreadDeterminesUnresolvedStatus() {
HumanComment root = resolved(createComment("root"));
HumanComment child = unresolved(createComment("child"));
CommentThread<Comment> commentThread = CommentThread.builder().addComment(root).addComment(child).build();
assertThat(commentThread.unresolved()).isTrue();
}
Aggregations