Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Feb 13, 2022
1 parent 25342bd commit 5107187
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public void testCheckMethodWithOnlyExistingPRs() throws Exception {
verify(ghPullRequest, times(2)).getHead();
verify(ghPullRequest, times(2)).getNumber();
verify(ghPullRequest, times(1)).getUpdatedAt();
verify(ghPullRequest, times(1)).getUser();
verify(ghPullRequest, times(2)).getUser();
verify(ghPullRequest, times(2)).getBase();
verify(ghPullRequest, times(1)).getComments();
verify(ghPullRequest, times(1)).listCommits();
Expand Down Expand Up @@ -290,7 +290,7 @@ public void testCheckMethodWithNewPR() throws Exception {
verifyNoMoreInteractions(ghRepository);

verify(ghPullRequest, times(1)).getTitle();
verify(ghPullRequest, times(3)).getUser();
verify(ghPullRequest, times(5)).getUser();
verify(ghPullRequest, times(1)).getMergeable(); // Call to Github API
verify(ghPullRequest, times(7)).getHead();
verify(ghPullRequest, times(6)).getBase();
Expand Down Expand Up @@ -318,7 +318,7 @@ public void testCheckMethodWithNewPR() throws Exception {
verifyNoMoreInteractions(helper);

verify(ghUser, times(1)).getEmail(); // Call to Github API
verify(ghUser, times(1)).getLogin();
verify(ghUser, times(3)).getLogin();
verifyNoMoreInteractions(ghUser);
}

Expand Down Expand Up @@ -471,7 +471,7 @@ public void testCheckBuildWithBlackWhiteLabelsSet() throws Exception {
verifyNoMoreInteractions(ghRepository);

verify(ghPullRequest, times(1)).getTitle();
verify(ghPullRequest, times(3)).getUser();
verify(ghPullRequest, times(5)).getUser();
verify(ghPullRequest, times(1)).getMergeable(); // Call to Github API
verify(ghPullRequest, times(7)).getHead();
verify(ghPullRequest, times(6)).getBase();
Expand Down Expand Up @@ -499,7 +499,7 @@ public void testCheckBuildWithBlackWhiteLabelsSet() throws Exception {
verifyNoMoreInteractions(helper);

verify(ghUser, times(1)).getEmail(); // Call to Github API
verify(ghUser, times(1)).getLogin();
verify(ghUser, times(3)).getLogin();
verifyNoMoreInteractions(ghUser);
}

Expand Down Expand Up @@ -563,7 +563,7 @@ public void testCheckMethodWhenPrWasUpdatedWithNonKeyPhrase() throws Exception {
verifyNoMoreInteractions(ghRepository);

verify(ghPullRequest, times(1)).getTitle();
verify(ghPullRequest, times(5)).getUser();
verify(ghPullRequest, times(7)).getUser();
verify(ghPullRequest, times(1)).getMergeable(); // Call to Github API
verify(ghPullRequest, times(7)).getHead();
verify(ghPullRequest, times(6)).getBase();
Expand Down Expand Up @@ -599,7 +599,7 @@ public void testCheckMethodWhenPrWasUpdatedWithNonKeyPhrase() throws Exception {
verifyNoMoreInteractions(helper);

verify(ghUser, times(1)).getEmail(); // Call to Github API
verify(ghUser, times(2)).getLogin();
verify(ghUser, times(4)).getLogin();
verify(ghUser, times(3)).getName();
verifyNoMoreInteractions(ghUser);
}
Expand Down Expand Up @@ -665,7 +665,7 @@ public void testCheckMethodWhenPrWasUpdatedWithRetestPhrase() throws Exception {
verifyNoMoreInteractions(ghRepository);

verify(ghPullRequest, times(2)).getTitle();
verify(ghPullRequest, times(5)).getUser();
verify(ghPullRequest, times(7)).getUser();
verify(ghPullRequest, times(2)).getMergeable(); // Call to Github API
verify(ghPullRequest, times(9)).getHead();
verify(ghPullRequest, times(7)).getBase();
Expand Down Expand Up @@ -701,7 +701,7 @@ public void testCheckMethodWhenPrWasUpdatedWithRetestPhrase() throws Exception {
verifyNoMoreInteractions(helper);

verify(ghUser, times(1)).getEmail(); // Call to Github API
verify(ghUser, times(2)).getLogin();
verify(ghUser, times(4)).getLogin();
verify(ghUser, times(2)).getName();
verifyNoMoreInteractions(ghUser);

Expand Down

0 comments on commit 5107187

Please sign in to comment.