use of edu.hawaii.its.groupings.type.Feedback in project uhgroupings by uhawaii-system-its-ti-iam.
the class EmailServiceTest method sendFeedbackWithExceptionMessage.
@Test
public void sendFeedbackWithExceptionMessage() {
Feedback feedback = createBaseFeedback();
feedback.setExceptionMessage("ArrayIndexOutOfBoundsException");
emailService.send(feedback);
assertThat(wasSent, is(true));
assertThat(messageSent.getSubject(), containsString("problem"));
assertThat(messageSent.getText(), containsString("John Doe"));
assertThat(messageSent.getText(), containsString("jdoe@hawaii.edu"));
assertThat(messageSent.getText(), containsString("Some problem happened."));
assertThat(messageSent.getText(), containsString("Stack Trace:"));
assertThat(messageSent.getText(), containsString("ArrayIndexOutOfBoundsException"));
}
Aggregations