Lines Matching refs:dir
40 Path dir = TestUtil.createTemporaryDirectory();
42 supportsLinks = TestUtil.supportsLinks(dir);
48 testToFile(dir);
51 testToRealPath(dir);
55 TestUtil.removeAll(dir);
86 static void testToFile(Path dir) throws IOException {
87 File d = dir.toFile();
88 assertTrue(d.toString().equals(dir.toString()));
89 assertTrue(d.toPath().equals(dir));
95 static void testToRealPath(Path dir) throws IOException {
96 final Path file = Files.createFile(dir.resolve("foo"));
97 final Path link = dir.resolve("link");
107 Path doesNotExist = dir.resolve("DoesNotExist");
149 assertTrue(dir.resolve(".").toRealPath().equals(dir.toRealPath()));
150 assertTrue(dir.resolve(".").toRealPath(NOFOLLOW_LINKS).equals(dir.toRealPath(NOFOLLOW_LINKS)));
156 Path subdir = Files.createDirectory(dir.resolve("subdir"));
157 assertTrue(subdir.resolve("..").toRealPath().equals(dir.toRealPath()));
158 assertTrue(subdir.resolve("..").toRealPath(NOFOLLOW_LINKS).equals(dir.toRealPath(NOFOLLOW_LINKS)));