Lines Matching defs:dir
124 static void permissionTests(Path dir)
130 Path file = dir.resolve("foo");
172 if (TestUtil.supportsLinks(dir)) {
173 Path link = dir.resolve("link");
196 static void createTests(Path dir)
201 Path file = dir.resolve("foo");
232 static void ownerTests(Path dir)
237 Path file = dir.resolve("gus");
268 static void lookupPrincipalTests(Path dir)
273 UserPrincipalLookupService lookupService = dir.getFileSystem()
277 PosixFileAttributes attrs = Files.readAttributes(dir, PosixFileAttributes.class);
322 static void exceptionsTests(Path dir)
328 Files.getFileAttributeView(dir,PosixFileAttributeView.class);
342 UserPrincipalLookupService lookupService = dir.getFileSystem()
380 Path dir = TestUtil.createTemporaryDirectory();
382 if (!Files.getFileStore(dir).supportsFileAttributeView("posix")) {
387 permissionTests(dir);
388 createTests(dir);
389 ownerTests(dir);
390 lookupPrincipalTests(dir);
391 exceptionsTests(dir);
394 TestUtil.removeAll(dir);