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

Method testFileProtocol

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

toASCIIMethod · 0.95
toUNICODEMethod · 0.95

Tested by

no test coverage detected