This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 0e4ea3d1 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Fix tests

parent c1d6a978
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -17,7 +17,7 @@
</p>
<table><tr><th>Exercise Name</th><th>Watchlist</th></tr>
<tr th:each="wlUpdate: ${watchListUpdates}">
<td><span th:text="${wlUpdate.key.metadata.title}"></span><span th:text="${#calendars.format(wlUpdate.key.metadata.project.last_activity_at,'dd MMMM yyyy')}">Exercise title</span></td>
<td><span th:text="${wlUpdate.key.metadata.title}"></span><span th:text="${#temporals.format(wlUpdate.key.project.last_activity_at,'dd MMMM yyyy')}">Exercise title</span></td>
<td th:text="${wlUpdate.value.name}">Exercise title</td>
</tr>
......
......@@ -11,6 +11,7 @@ import java.time.Instant;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
......@@ -203,7 +204,10 @@ public class UserWatchListServiceIT {
mailService.sendInfoMails();
verify(javaMailSender).send(messageCaptor.capture());
MimeMessage message = messageCaptor.getValue();
List<MimeMessage> messages = messageCaptor.getAllValues();
assertThat(messages.size()).isEqualTo(1);
MimeMessage message = messages.get(0);
assertThat(message.getAllRecipients()[0].toString()).isEqualTo(user.getEmail());
// assertThat(message.getFrom()[0].toString()).isEqualTo(jHipsterProperties.getMail().getFrom());
assertThat(message.getContent().toString()).isNotEmpty();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment