| 258 | } |
| 259 | |
| 260 | @Test |
| 261 | public void testToASCII() throws Exception { |
| 262 | assertEquals("http://www.xn--evir-zoa.com", |
| 263 | URLUtil.toASCII("http://www.çevir.com")); |
| 264 | assertEquals("http://xn--uni-tbingen-xhb.de/", |
| 265 | URLUtil.toASCII("http://uni-tübingen.de/")); |
| 266 | assertEquals( |
| 267 | "http://www.medizin.xn--uni-tbingen-xhb.de:8080/search.php?q=abc#p1", |
| 268 | URLUtil |
| 269 | .toASCII("http://www.medizin.uni-tübingen.de:8080/search.php?q=abc#p1")); |
| 270 | } |
| 271 | |
| 272 | @Test |
| 273 | public void testFileProtocol() throws Exception { |