@Test public void testFileSystemForDefaultUnixConfiguration() throws IOException { FileSystem fs = Jimfs.newFileSystem(Configuration.unix()); assertThat(fs.getRootDirectories()) .containsExactlyElementsIn(ImmutableList.of(fs.getPath("/"))) .inOrder(); assertThatPath(fs.getPath("").toRealPath()).isEqualTo(fs.getPath("/work")); assertThat(Iterables.getOnlyElement(fs.getFileStores()).getTotalSpace()) .isEqualTo(4L * 1024 * 1024 * 1024); assertThat(fs.supportedFileAttributeViews()).containsExactly("basic"); Files.createFile(fs.getPath("/foo")); Files.createFile(fs.getPath("/FOO")); }
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();  }