Lines Matching defs:dir
44 Path dir = TestUtil.createTemporaryDirectory();
46 supportsLinks = TestUtil.supportsLinks(dir);
49 createTests(dir);
50 appendTests(dir);
51 truncateExistingTests(dir);
52 noFollowLinksTests(dir);
55 sizeTruncatePositionTests(dir);
59 dosSharingOptionTests(dir);
62 badCombinations(dir);
63 unsupportedOptions(dir);
64 nullTests(dir);
67 TestUtil.removeAll(dir);
72 static void createTests(Path dir) throws Exception {
73 Path file = dir.resolve("foo");
87 Path link = Files.createSymbolicLink(dir.resolve("link"), file);
124 Path link = dir.resolve("link");
125 Path target = dir.resolve("thisDoesNotExist");
162 static void appendTests(Path dir) throws Exception {
163 Path file = dir.resolve("foo");
191 static void truncateExistingTests(Path dir) throws Exception {
192 Path file = dir.resolve("foo");
225 static void noFollowLinksTests(Path dir) throws Exception {
228 Path file = Files.createFile(dir.resolve("foo"));
231 Path link = dir.resolve("link");
250 static void sizeTruncatePositionTests(Path dir) throws Exception {
251 Path file = dir.resolve("foo");
283 static void dosSharingOptionTests(Path dir) throws Exception {
284 Path file = Files.createFile(dir.resolve("foo"));
349 static void badCombinations(Path dir) throws Exception {
350 Path file = dir.resolve("bad");
364 static void unsupportedOptions(Path dir) throws Exception {
365 Path file = dir.resolve("bad");
379 static void nullTests(Path dir) throws Exception {
380 Path file = dir.resolve("foo");