From 7cc9bd46abaff1ca50d022241e2863867a6119ab Mon Sep 17 00:00:00 2001 From: arus2023 Date: Mon, 25 Sep 2023 21:57:46 -0500 Subject: [PATCH] Removed 1 unnecessary stubbing in GitHubSCMSourceTest.java --- .../plugins/github_branch_source/GitHubSCMSourceTest.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java b/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java index b91212b9f..802cfb2e0 100644 --- a/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java +++ b/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java @@ -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));