How do I create a new URL object using a local file, for the purpose of unit tests?
URL
new File(path).toURI().toURL();
1.4m articles
1.4m replys
5 comments
57.0k users