@Test public void safelyDecodeShouldReturnInvalidEncodedTextUnmodified() throws Exception { String invalidEncodedText = "=?UTF-8?Q?=E2=99=A5=FX=9F=9A=B2?="; assertThat(NotifyMailetsMessage.safelyDecode(invalidEncodedText)) .isEqualTo(invalidEncodedText); }
@VisibleForTesting static String safelyDecode(String text) { try { return MimeUtility.decodeText(text); } catch (UnsupportedEncodingException e) { LOGGER.error("Could not decode following value {}", text, e); return text; } }
NotifyMailetsMessage { @VisibleForTesting static String safelyDecode(String text) { try { return MimeUtility.decodeText(text); } catch (UnsupportedEncodingException e) { LOGGER.error("Could not decode following value {}", text, e); return text; } } }
NotifyMailetsMessage { @VisibleForTesting static String safelyDecode(String text) { try { return MimeUtility.decodeText(text); } catch (UnsupportedEncodingException e) { LOGGER.error("Could not decode following value {}", text, e); return text; } }  }
NotifyMailetsMessage { @VisibleForTesting static String safelyDecode(String text) { try { return MimeUtility.decodeText(text); } catch (UnsupportedEncodingException e) { LOGGER.error("Could not decode following value {}", text, e); return text; } }  String generateMessage(String parameterMessage, Mail originalMail); }
NotifyMailetsMessage { @VisibleForTesting static String safelyDecode(String text) { try { return MimeUtility.decodeText(text); } catch (UnsupportedEncodingException e) { LOGGER.error("Could not decode following value {}", text, e); return text; } }  String generateMessage(String parameterMessage, Mail originalMail);  }