From 7b27ee90d616f07d644a244de521f764449cbd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Thu, 12 Dec 2024 13:04:14 +0100 Subject: [PATCH] Add missing assertions in tests --- .../java/io/quarkus/github/lottery/GitHubServiceTest.java | 6 ++++++ 1 file changed, 6 insertions(+) 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);