diff --git a/src/test/java/io/quarkus/github/lottery/GitHubServiceTest.java b/src/test/java/io/quarkus/github/lottery/GitHubServiceTest.java index 3a1488c..df8454e 100644 --- a/src/test/java/io/quarkus/github/lottery/GitHubServiceTest.java +++ b/src/test/java/io/quarkus/github/lottery/GitHubServiceTest.java @@ -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); @@ -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);