Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Nov 22, 2024
1 parent 110dbc1 commit 93f29f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 93f29f9

Please sign in to comment.