1 | void testSubstituteURL1() {↵ | | 1 | void testSubstituteURL5() {↵
|
2 | String input = "This page http://columba.sourceforge.net is net!";↵ | | 2 | String input = "This page http://test.com/$255. is net!";↵
|
|
3 | String result = HtmlParser.substituteURL(input);↵ | | 3 | String result = HtmlParser.substituteURL(input);↵
|
4 | assertEquals("This page <A HREF=\"http://columba.sourceforge.net\">http://columba.sourceforge.net</A> is net!", result);↵ | | 4 | assertEquals("This page <A HREF=\"http://test.com/$255\">http://test.com/$255</A>. is net!", result);↵
|
5 | }↵ | | 5 | }↵
|
| | | 6 | ↵
|
6 | public void testSubstituteURL3() {↵ | | 7 | public void testSubstituteURL6() {↵
|
7 | String input = "This page \t(http://columba.sourceforge.net/phpBB2/viewtopic.php?p=239#239) is net!";↵ | | 8 | String input = "http://columbamail.org/jira/browse/CA-117<br>";↵
|
|
8 | String result = HtmlParser.substituteURL(input);↵ | | 9 | String result = HtmlParser.substituteURL(input);↵
|
9 | ↵ | | 10 | ↵
|
10 | assertEquals(↵ | | 11 | assertEquals(↵
|
11 | "This page \t(<A HREF=\"http://columba.sourceforge.net/phpBB2/viewtopic.php?p=239#239\">http://columba.sourceforge.net/phpBB2/viewtopic.php?p=239#239</A>) is net!",↵ | | 12 | "<A HREF=\"http://columbamail.org/jira/browse/CA-117\">http://columbamail.org/jira/browse/CA-117</A><br>",↵
|
12 | result);↵ | | 13 | result);↵
|
13 | | | 14 |
|