|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2012-2024 Red Hat, Inc. |
| 2 | + * Copyright (c) 2012-2025 Red Hat, Inc. |
3 | 3 | * This program and the accompanying materials are made
|
4 | 4 | * available under the terms of the Eclipse Public License 2.0
|
5 | 5 | * which is available at https://www.eclipse.org/legal/epl-2.0/
|
@@ -239,7 +239,7 @@ public void checkPullRequestFromForkedRepository() throws Exception {
|
239 | 239 |
|
240 | 240 | PersonalAccessToken personalAccessToken = mock(PersonalAccessToken.class);
|
241 | 241 | when(personalAccessToken.getToken()).thenReturn("token");
|
242 |
| - when(personalAccessTokenManager.get(any(Subject.class), anyString(), eq(null), eq(null))) |
| 242 | + when(personalAccessTokenManager.get(any(Subject.class), eq(null), anyString(), eq(null))) |
243 | 243 | .thenReturn(Optional.of(personalAccessToken));
|
244 | 244 |
|
245 | 245 | when(githubApiClient.isConnected(eq("https://github.com"))).thenReturn(true);
|
@@ -288,7 +288,7 @@ public void checkPullRequestMergedState() throws Exception {
|
288 | 288 | GithubPullRequest githubPullRequest = mock(GithubPullRequest.class);
|
289 | 289 | when(githubPullRequest.getState()).thenReturn("merged");
|
290 | 290 | when(personalAccessToken.getToken()).thenReturn("token");
|
291 |
| - when(personalAccessTokenManager.get(any(Subject.class), anyString(), eq(null), eq(null))) |
| 291 | + when(personalAccessTokenManager.get(any(Subject.class), eq(null), anyString(), eq(null))) |
292 | 292 | .thenReturn(Optional.of(personalAccessToken));
|
293 | 293 | when(githubApiClient.isConnected(eq("https://github.com"))).thenReturn(true);
|
294 | 294 | when(githubApiClient.getPullRequest(anyString(), anyString(), anyString(), anyString()))
|
@@ -331,7 +331,7 @@ public void shouldParseServerUrWithPullRequestId() throws Exception {
|
331 | 331 |
|
332 | 332 | // then
|
333 | 333 | verify(personalAccessTokenManager, times(2))
|
334 |
| - .get(any(Subject.class), eq("https://github-server.com"), eq(null), eq(null)); |
| 334 | + .get(any(Subject.class), eq(null), eq("https://github-server.com"), eq(null)); |
335 | 335 | }
|
336 | 336 |
|
337 | 337 | @Test
|
|
0 commit comments