### Question:
UrlToLinkConvertPostProcessor implements TextPostProcessor { @Override public String postProcess(String bbDecodedText) { return processLinks(bbDecodedText); }  @Override String postProcess(String bbDecodedText);  }### Answer:
@Test void doesNothingIfNoLinksPresent() { String originalText = "Silent sir say desire fat him letter. Whatever settling goodness too and \n" + "honoured she building answered her. Strongly thoughts remember mr to do consider debating. \n" + "Spirits musical behaved on we he farther letters. Repulsive he he as deficient newspaper dashwoods we. \n" + "Discovered her his pianoforte insipidity entreaties. Began he at terms meant as fancy. Breakfast \n" + "arranging he if furniture we described on. И чуть-чуть на русском. Astonished thoroughly unpleasant \n" + "especially you dispatched \n" + "bed favourable."; assertEquals(postProcessor.postProcess(originalText), originalText); }
@Test void doesNothingIfNoTextPresent() { assertEquals(postProcessor.postProcess(""), ""); }
@Test(dataProvider = "urlShouldBeHighlighted") void turnUrlToHrefTag_IfUrlShouldBeHighlighted(String originalText, String expectedOutput) { assertEquals(postProcessor.postProcess(originalText), expectedOutput); }
@Test(dataProvider = "urlShouldNotBeHighlighted") void dontTurnUrlToHrefTag_IfUrlShouldNotBeHighlighted(String originalText) { assertEquals(postProcessor.postProcess(originalText), originalText); }
@Test(dataProvider = "allJoinedUrlCases") void turnUrlToHrefTagIfNeeded(String originalText, String expectedOutput) { assertEquals(postProcessor.postProcess(originalText), expectedOutput); }