MCPcopy Create free account
hub / github.com/apache/nutch / testToASCII

Method testToASCII

src/test/org/apache/nutch/util/TestURLUtil.java:260–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

toASCIIMethod · 0.95

Tested by

no test coverage detected