1 | void testrestoreSpecialCharacters1() {↵ | | 1 | void testrestoreSpecialCharacters3() {↵
|
2 | String input = "this ; is encoded!";↵ | | 2 | String input = "this is ½ encoded ; !";↵
|
3 | ↵ | | 3 | ↵
|
4 | assertEquals("this ; is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));↵ | | 4 | assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input));↵
|
5 | }↵ | | 5 | }↵
|
|
6 | public void testrestoreSpecialCharacters2() {↵ | | 6 | public void testrestoreSpecialCharacters4() {↵
|
7 | String input = "this ä is encoded!";↵ | | 7 | String input = "this is<encoded>!";↵
|
8 | ↵ | | 8 | ↵
|
9 | assertEquals("this \u00e4 is encoded!", HtmlParser.restoreSpecialCharacters(testCharset, input));↵ | | 9 | assertEquals("this is<encoded>!", HtmlParser.restoreSpecialCharacters(testCharset, input));↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public void testrestoreSpecialCharacters3() {↵ | | 11 | public void testrestoreSpecialCharacters5() {↵
|
12 | String input = "this is ½ encoded ; !";↵ | | 12 | String input = "½ this is this is ;this is ;this is ;\nthis is ;\nthis is ;";↵
|
13 | ↵ | | 13 | ↵
|
14 | assertEquals("this is \u00bd encoded ; !", HtmlParser.restoreSpecialCharacters(testCharset, input));↵ | | 14 | assertEquals("\u00bd this is \u00a0this is ;this is ;this is ;\nthis is ;\nthis is ;", HtmlParser.restoreSpecialCharacters(testCharset, input));↵
|
15 | } | | 15 | }
|