Search in sources :

Example 6 with PullRequestRejectedEvent

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

the class MailTextResolverTest method shouldRenderEmailOnRejectedPullRequest.

@Test
void shouldRenderEmailOnRejectedPullRequest() {
    PullRequestRejectedEvent event = new PullRequestRejectedEvent(repository, pullRequest, PullRequestRejectedEvent.RejectionCause.REJECTED_BY_USER);
    PullRequestRejectedMailTextResolver renderer = new PullRequestRejectedMailTextResolver(event);
    assertEmail(renderer, "rejected");
}
Also used : PullRequestRejectedEvent(com.cloudogu.scm.review.pullrequest.service.PullRequestRejectedEvent) Test(org.junit.jupiter.api.Test)

Aggregations

PullRequestRejectedEvent (com.cloudogu.scm.review.pullrequest.service.PullRequestRejectedEvent)6 Test (org.junit.jupiter.api.Test)3 Comment.createComment (com.cloudogu.scm.review.comment.service.Comment.createComment)2 PullRequest (com.cloudogu.scm.review.pullrequest.service.PullRequest)2 SubjectAware (com.github.sdorra.shiro.SubjectAware)2 Test (org.junit.Test)2 DynamicTest (org.junit.jupiter.api.DynamicTest)1 Repository (sonia.scm.repository.Repository)1