Searched defs:watchService (Results 1 - 1 of 1) sorted by relevance
/libcore/luni/src/test/java/libcore/java/nio/file/ |
H A D | WatchServiceTest.java | 76 private static void checkWatchServiceEventMultipleKeys(WatchService watchService, argument 88 WatchKey watchKey = watchService.poll(2, TimeUnit.SECONDS); 112 private static void checkWatchServiceEvent(WatchService watchService, argument 118 checkWatchServiceEventMultipleKeys(watchService, expected, expectedResetResult); 123 WatchService watchService = FileSystems.getDefault().newWatchService(); 128 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); 132 checkWatchServiceEvent(watchService, directoryKey1, 134 assertNull(watchService.poll()); 138 checkWatchServiceEvent(watchService, directoryKey1, 146 WatchKey doubleModifyKey = watchService [all...] |
Completed in 3 milliseconds