Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 17, 2023
1 parent c839b0a commit 02b5da7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/test/java/access/cron/IdentityProviderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ void getName() {
LocaleContextHolder.setLocale(Locale.forLanguageTag("nl"));
identityProvider = new IdentityProvider("en", "nl", "logo");
assertEquals("nl", identityProvider.getName());
//Put back the locale, otherwise the mail tests become flakey
LocaleContextHolder.setLocale(Locale.ENGLISH);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ void sweep() {

MimeMessageParser messageParser = super.mailMessage();
String htmlContent = messageParser.getHtmlContent();
System.out.println(htmlContent);
assertTrue(htmlContent.contains("Your Inviter role Mail at the application Calendar EN will expire"));

userRole = userRoleRepository.findByRoleName("Mail").get(0);
Expand Down

0 comments on commit 02b5da7

Please sign in to comment.