docs: update mute idiom

This commit is contained in:
Ilkka Seppälä
2024-05-09 14:03:39 +03:00
parent 6cc4525bc1
commit 10cb8c0c09
3 changed files with 86 additions and 58 deletions
@@ -63,10 +63,9 @@ class MuteTest {
Mute.loggedMute(this::methodThrowingException);
assertTrue(new String(stream.toByteArray()).contains(MESSAGE));
assertTrue(stream.toString().contains(MESSAGE));
}
private void methodNotThrowingAnyException() {
LOGGER.info("Executed successfully");
}