mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 10:59:17 +00:00
docs: update mute idiom
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user