From 93f29f9362759b9d86dc12040cc7ca8a818c28af Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 21 Nov 2024 22:28:10 -0500 Subject: [PATCH] fixed test --- .../action/BitBucketPPRPullRequestServerActionTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/io/jenkins/plugins/bitbucketpushandpullrequest/action/BitBucketPPRPullRequestServerActionTest.java b/src/test/java/io/jenkins/plugins/bitbucketpushandpullrequest/action/BitBucketPPRPullRequestServerActionTest.java index 645ea1e..624a391 100644 --- a/src/test/java/io/jenkins/plugins/bitbucketpushandpullrequest/action/BitBucketPPRPullRequestServerActionTest.java +++ b/src/test/java/io/jenkins/plugins/bitbucketpushandpullrequest/action/BitBucketPPRPullRequestServerActionTest.java @@ -60,7 +60,7 @@ public void testGetMergeCommit() throws BitBucketPPRPayloadPropertyNotFoundExcep BitBucketPPRPayload payloadMock = mock(BitBucketPPRPayload.class, RETURNS_DEEP_STUBS); when(payloadMock.getPullRequest().getMergeCommit().getHash()).thenReturn("123456"); BitBucketPPRHookEvent event = mock(BitBucketPPRHookEvent.class); - when(event.getAction()).thenReturn("fulfilled"); + when(event.getAction()).thenReturn("merged"); BitBucketPPRPullRequestServerAction action = new BitBucketPPRPullRequestServerAction(payloadMock, event); assertEquals("123456", action.getLatestCommit());