Skip to content

Commit

Permalink
Add missing assertions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Dec 12, 2024
1 parent 7425d64 commit 7b27ee9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,14 @@ void issuesLastActedOnByAndLastUpdatedBefore_team() throws IOException {
})
.then().github(mocks -> {
verify(searchIssuesBuilderMock).q("repo:" + repoRef.repositoryName());
verify(searchIssuesBuilderMock).q("is:issue");
verify(searchIssuesBuilderMock).isOpen();
verify(searchIssuesBuilderMock).q("updated:<2017-11-05T06:00");
verify(searchIssuesBuilderMock).sort(GHIssueSearchBuilder.Sort.UPDATED);
verify(searchIssuesBuilderMock).order(GHDirection.DESC);
verify(searchIssuesBuilderMock).q("label:triage/needs-feedback,triage/needs-reproducer");
verify(searchIssuesBuilderMock).q("label:area/hibernate-search");
verifyNoMoreInteractions(searchIssuesBuilderMock);

verify(issue1QueryCommentsBuilderMock).since(issue1ActionLabelEvent);
verify(issue2QueryCommentsBuilderMock).since(issue2ActionLabelEvent);
Expand Down Expand Up @@ -848,11 +851,14 @@ void issuesLastActedOnByAndLastUpdatedBefore_outsider() throws IOException {
})
.then().github(mocks -> {
verify(searchIssuesBuilderMock).q("repo:" + repoRef.repositoryName());
verify(searchIssuesBuilderMock).q("is:issue");
verify(searchIssuesBuilderMock).isOpen();
verify(searchIssuesBuilderMock).q("updated:<2017-11-05T06:00");
verify(searchIssuesBuilderMock).sort(GHIssueSearchBuilder.Sort.UPDATED);
verify(searchIssuesBuilderMock).order(GHDirection.DESC);
verify(searchIssuesBuilderMock).q("label:triage/needs-feedback,triage/needs-reproducer");
verify(searchIssuesBuilderMock).q("label:area/hibernate-search");
verifyNoMoreInteractions(searchIssuesBuilderMock);

verify(issue1QueryCommentsBuilderMock).since(issue1ActionLabelEvent);
verify(issue2QueryCommentsBuilderMock).since(issue2ActionLabelEvent);
Expand Down

0 comments on commit 7b27ee9

Please sign in to comment.