Search in sources :

Example 6 with PullRequestEvent

use of com.cloudogu.scm.review.pullrequest.service.PullRequestEvent in project scm-review-plugin by scm-manager.

the class MailTextResolverTest method shouldRenderEmailOnCreatedPullRequest.

@Test
void shouldRenderEmailOnCreatedPullRequest() {
    PullRequestEvent event = new PullRequestEvent(repository, pullRequest, oldPullRequest, HandlerEventType.CREATE);
    PullRequestEventMailTextResolver renderer = new PullRequestEventMailTextResolver(event, false);
    assertEmail(renderer, "created");
}
Also used : PullRequestEvent(com.cloudogu.scm.review.pullrequest.service.PullRequestEvent) Test(org.junit.jupiter.api.Test)

Aggregations

PullRequestEvent (com.cloudogu.scm.review.pullrequest.service.PullRequestEvent)6 Test (org.junit.jupiter.api.Test)5 BasicPullRequestEvent (com.cloudogu.scm.review.pullrequest.service.BasicPullRequestEvent)3 PullRequest (com.cloudogu.scm.review.pullrequest.service.PullRequest)1 Repository (sonia.scm.repository.Repository)1 SessionId (sonia.scm.security.SessionId)1