Lines Matching defs:dir
43 Path dir = TestUtil.createTemporaryDirectory();
45 testOverflowEvent(dir);
46 testModifyEventsQueuing(dir);
48 TestUtil.removeAll(dir);
55 static void testOverflowEvent(Path dir)
58 try (WatchService watcher = dir.getFileSystem().newWatchService()) {
59 dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE);
65 files[i] = Files.createFile(dir.resolve("foo" + i));
132 static void testModifyEventsQueuing(Path dir)
139 entries[i] = new DirectoryEntry(dir.resolve("foo" + i));
147 try (WatchService watcher = dir.getFileSystem().newWatchService()) {
148 dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY);