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

Commit

Permalink
Avoiding error in Eclipse
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Jun 2, 2017
1 parent 36089b1 commit 3a64aa7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
Changelog of Pull Request Notifier for Bitbucket.

## Unreleased
### No issue
Fix typo

[7e9306755d0f9f4](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/7e9306755d0f9f4) J.T. Conklin *2017-05-18 15:18:35*

## 3.0
### GitHub [#215](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/215) Bitbucket Server 5.0 support
Bitbucket Server 5.0

[37aed01e288ac56](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/37aed01e288ac56) Tomas Bjerre *2017-05-13 12:18:26*

### No issue
Updating install script

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,28 @@
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;

import com.atlassian.bitbucket.event.pull.PullRequestCommentAddedEvent;
import com.atlassian.bitbucket.event.pull.PullRequestEvent;
import com.atlassian.bitbucket.project.Project;
import com.atlassian.bitbucket.pull.PullRequest;
import com.atlassian.bitbucket.pull.PullRequestRef;
import com.atlassian.bitbucket.pull.PullRequestService;
import com.atlassian.bitbucket.repository.Repository;
import com.google.common.base.Function;

import se.bjurr.prnfb.http.ClientKeyStore;
import se.bjurr.prnfb.http.HttpResponse;
import se.bjurr.prnfb.http.Invoker;
import se.bjurr.prnfb.http.UrlInvoker;
import se.bjurr.prnfb.service.PrnfbRenderer;
import se.bjurr.prnfb.service.PrnfbRendererFactory;
import se.bjurr.prnfb.service.SettingsService;
import se.bjurr.prnfb.service.VariablesContext;
import se.bjurr.prnfb.settings.PrnfbNotification;
import se.bjurr.prnfb.settings.PrnfbSettingsData;
import se.bjurr.prnfb.settings.ValidationException;

import com.atlassian.bitbucket.event.pull.PullRequestCommentAddedEvent;
import com.atlassian.bitbucket.event.pull.PullRequestEvent;
import com.atlassian.bitbucket.project.Project;
import com.atlassian.bitbucket.pull.PullRequest;
import com.atlassian.bitbucket.pull.PullRequestRef;
import com.atlassian.bitbucket.pull.PullRequestService;
import com.atlassian.bitbucket.repository.Repository;
import com.atlassian.bitbucket.user.ApplicationUser;
import com.google.common.base.Function;

public class PrnfbPullRequestEventListenerTest {

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

when(prnfbRendererFactory.create(any(), any(), any(), any(), any())) //
when(prnfbRendererFactory.create(
any(PullRequest.class),
any(PrnfbPullRequestAction.class),
any(PrnfbNotification.class),
any(VariablesContext.class),
any(ApplicationUser.class))) //
.thenReturn(renderer);
when(renderer.render(any(), any(), any(), any())) //
.thenAnswer(
Expand Down

0 comments on commit 3a64aa7

Please sign in to comment.