コード例 #1
0
 @Test
 public void walk_root() throws URISyntaxException, IOException {
   String authority = "local.walkroot";
   String uri = SCHEME + "://" + authority;
   Map<String, Object> env = new HashMap<>();
   env.put(FileSystemIO.BASE_DIRECTORY, BASE_FILE.toString() + "/" + authority);
   FileSystems.newFileSystem(URI.create(uri), env);
   Path root = Paths.get(URI.create(uri));
   createFiles(root, "root", 50);
   walk(authority, root, "root", 50);
 }
コード例 #2
0
 @Test
 public void test() {
   assertTrue(BASE_FILE.exists());
   assertTrue(BASE_FILE.isDirectory());
 }
コード例 #3
0
 @BeforeClass
 public static void setUpClass() throws IOException {
   Map<String, Object> env = new HashMap<>();
   env.put(FileSystemIO.BASE_DIRECTORY, BASE_FILE.toString() + "/" + AUTHORITY);
   FileSystems.newFileSystem(URI.create(URI_PREFIX), env);
 }