Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- @TestForIssue(jiraKey = "HHH-6806")
- public void testJarVisitorFactory() throws Exception {
- // setting URL to accept vfs based protocol
- URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory() {
- public URLStreamHandler createURLStreamHandler(String protocol) {
- if ("vfszip".equals(protocol) || "vfsfile".equals(protocol))
- return new URLStreamHandler() {
- protected URLConnection openConnection(URL u) throws IOException {
- return null;
- }
- };
- return null;
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement