Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Commit 3a64aa7

Browse files
committed
Avoiding error in Eclipse
1 parent 36089b1 commit 3a64aa7

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
Changelog of Pull Request Notifier for Bitbucket.
44

55
## Unreleased
6+
### No issue
7+
Fix typo
8+
9+
[7e9306755d0f9f4](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/7e9306755d0f9f4) J.T. Conklin *2017-05-18 15:18:35*
10+
11+
## 3.0
12+
### GitHub [#215](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/215) Bitbucket Server 5.0 support
13+
Bitbucket Server 5.0
14+
15+
[37aed01e288ac56](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/37aed01e288ac56) Tomas Bjerre *2017-05-13 12:18:26*
16+
617
### No issue
718
Updating install script
819

src/test/java/se/bjurr/prnfb/listener/PrnfbPullRequestEventListenerTest.java

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,28 @@
2929
import org.mockito.invocation.InvocationOnMock;
3030
import org.mockito.stubbing.Answer;
3131

32-
import com.atlassian.bitbucket.event.pull.PullRequestCommentAddedEvent;
33-
import com.atlassian.bitbucket.event.pull.PullRequestEvent;
34-
import com.atlassian.bitbucket.project.Project;
35-
import com.atlassian.bitbucket.pull.PullRequest;
36-
import com.atlassian.bitbucket.pull.PullRequestRef;
37-
import com.atlassian.bitbucket.pull.PullRequestService;
38-
import com.atlassian.bitbucket.repository.Repository;
39-
import com.google.common.base.Function;
40-
4132
import se.bjurr.prnfb.http.ClientKeyStore;
4233
import se.bjurr.prnfb.http.HttpResponse;
4334
import se.bjurr.prnfb.http.Invoker;
4435
import se.bjurr.prnfb.http.UrlInvoker;
4536
import se.bjurr.prnfb.service.PrnfbRenderer;
4637
import se.bjurr.prnfb.service.PrnfbRendererFactory;
4738
import se.bjurr.prnfb.service.SettingsService;
39+
import se.bjurr.prnfb.service.VariablesContext;
4840
import se.bjurr.prnfb.settings.PrnfbNotification;
4941
import se.bjurr.prnfb.settings.PrnfbSettingsData;
5042
import se.bjurr.prnfb.settings.ValidationException;
5143

44+
import com.atlassian.bitbucket.event.pull.PullRequestCommentAddedEvent;
45+
import com.atlassian.bitbucket.event.pull.PullRequestEvent;
46+
import com.atlassian.bitbucket.project.Project;
47+
import com.atlassian.bitbucket.pull.PullRequest;
48+
import com.atlassian.bitbucket.pull.PullRequestRef;
49+
import com.atlassian.bitbucket.pull.PullRequestService;
50+
import com.atlassian.bitbucket.repository.Repository;
51+
import com.atlassian.bitbucket.user.ApplicationUser;
52+
import com.google.common.base.Function;
53+
5254
public class PrnfbPullRequestEventListenerTest {
5355

5456
private final ClientKeyStore clientKeyStore = null;
@@ -144,7 +146,12 @@ public HttpResponse invoke(UrlInvoker urlInvoker) {
144146
when(settingsService.getNotifications()) //
145147
.thenReturn(notifications);
146148

147-
when(prnfbRendererFactory.create(any(), any(), any(), any(), any())) //
149+
when(prnfbRendererFactory.create(
150+
any(PullRequest.class),
151+
any(PrnfbPullRequestAction.class),
152+
any(PrnfbNotification.class),
153+
any(VariablesContext.class),
154+
any(ApplicationUser.class))) //
148155
.thenReturn(renderer);
149156
when(renderer.render(any(), any(), any(), any())) //
150157
.thenAnswer(

0 commit comments

Comments
 (0)