Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ public void testNotificationOnCommentAddedWithRawBody() {
listener.addPublisher(publisher);

listener.afterCaseCommentAdded(event);
String expectedNotification = "Publishing notification from [email protected], with subject You have been mentioned in case (CASE-00001) comment to [[UserImpl:'mary'], [UserImpl:'john']] with body simple comment for john and mary";

String expectedNotification = "Publishing notification from cases@jbpm\\.org, with subject You have been mentioned in case \\(CASE-00001\\) comment to \\[\\[UserImpl:'(mary|john)'], \\[UserImpl:'(john|mary)']] with body simple comment for john and mary";

List<String> published = publisher.get();
assertThat(published).hasSize(1);
assertThat(published.get(0)).isEqualTo(expectedNotification);
assertThat(published.get(0)).matches(expectedNotification);
}

protected CaseFileInstance buildCaseFile(List<String> mentionedRoles) {
Expand Down