()
| 270 | } |
| 271 | |
| 272 | @Test |
| 273 | public void testFileProtocol() throws Exception { |
| 274 | // keep one single slash NUTCH-XXX |
| 275 | assertEquals("file:/path/file.html", |
| 276 | URLUtil.toASCII("file:/path/file.html")); |
| 277 | assertEquals("file:/path/file.html", |
| 278 | URLUtil.toUNICODE("file:/path/file.html")); |
| 279 | } |
| 280 | |
| 281 | } |