Skip to content

Commit

Permalink
Removed 1 unnecessary stubbing in GitHubSCMSourceTest.java (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARUS2023 authored Sep 26, 2023
1 parent a3028eb commit f62ec0a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -919,10 +919,6 @@ public void testShouldRetrieveTagSCMHeadType() throws Exception {
@Issue("JENKINS-65071")
public void testShouldRetrieveNullEvent() throws Exception {
SCMHeadObserver mockSCMHeadObserver = Mockito.mock(SCMHeadObserver.class);
Mockito.when(mockSCMHeadObserver.getIncludes())
.thenReturn(
Collections.singleton(new GitHubTagSCMHead("non-existent-tag", System.currentTimeMillis())));

assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, GitHubTagSCMHead.class));
assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, PullRequestSCMHead.class));
assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, BranchSCMHead.class));
Expand Down

0 comments on commit f62ec0a

Please sign in to comment.