@Test public void testFileSystemWithDefaultWatchService() throws IOException { FileSystem fs = Jimfs.newFileSystem(Configuration.unix()); WatchService watchService = fs.newWatchService(); assertThat(watchService).isInstanceOf(PollingWatchService.class); PollingWatchService pollingWatchService = (PollingWatchService) watchService; assertThat(pollingWatchService.interval).isEqualTo(5); assertThat(pollingWatchService.timeUnit).isEqualTo(SECONDS); }
public static Configuration unix() { return UnixHolder.UNIX; }
Configuration { public static Configuration unix() { return UnixHolder.UNIX; } }
Configuration { public static Configuration unix() { return UnixHolder.UNIX; } private  Configuration(Builder builder); }
Configuration { public static Configuration unix() { return UnixHolder.UNIX; } private  Configuration(Builder builder); static Configuration unix(); static Configuration osX(); static Configuration windows(); static Configuration forCurrentPlatform(); static Builder builder(PathType pathType); @Override String toString(); Builder toBuilder(); }
Configuration { public static Configuration unix() { return UnixHolder.UNIX; } private  Configuration(Builder builder); static Configuration unix(); static Configuration osX(); static Configuration windows(); static Configuration forCurrentPlatform(); static Builder builder(PathType pathType); @Override String toString(); Builder toBuilder();  }