See gh-38389
This commit is contained in:
Johnny Lim
2023-11-19 00:19:30 +09:00
committed by Moritz Halbritter
parent 9c43ed716a
commit 175b6473c7
14 changed files with 23 additions and 32 deletions

View File

@@ -81,7 +81,7 @@ class MailHealthIndicatorTests {
assertThat(health.getDetails()).doesNotContainKey("location");
Object errorMessage = health.getDetails().get("error");
assertThat(errorMessage).isNotNull();
assertThat(errorMessage.toString().contains("A test exception")).isTrue();
assertThat(errorMessage.toString()).contains("A test exception");
}
@Test
@@ -104,7 +104,7 @@ class MailHealthIndicatorTests {
assertThat(health.getDetails().get("location")).isEqualTo(":1234");
Object errorMessage = health.getDetails().get("error");
assertThat(errorMessage).isNotNull();
assertThat(errorMessage.toString().contains("A test exception")).isTrue();
assertThat(errorMessage.toString()).contains("A test exception");
}
@Test
@@ -125,7 +125,7 @@ class MailHealthIndicatorTests {
assertThat(health.getDetails()).containsEntry("location", "smtp.acme.org");
Object errorMessage = health.getDetails().get("error");
assertThat(errorMessage).isNotNull();
assertThat(errorMessage.toString().contains("A test exception")).isTrue();
assertThat(errorMessage.toString()).contains("A test exception");
}
@Test