@Test public void testDefaultWindowsConfiguration() { Configuration config = Configuration.windows(); assertThat(config.pathType).isEqualTo(PathType.windows()); assertThat(config.roots).containsExactly("C:\\"); assertThat(config.workingDirectory).isEqualTo("C:\\work"); assertThat(config.nameCanonicalNormalization).containsExactly(CASE_FOLD_ASCII); assertThat(config.nameDisplayNormalization).isEmpty(); assertThat(config.pathEqualityUsesCanonicalForm).isTrue(); assertThat(config.blockSize).isEqualTo(8192); assertThat(config.maxSize).isEqualTo(4L * 1024 * 1024 * 1024); assertThat(config.maxCacheSize).isEqualTo(-1); assertThat(config.attributeViews).containsExactly("basic"); assertThat(config.attributeProviders).isEmpty(); assertThat(config.defaultAttributeValues).isEmpty(); }
public static Configuration windows() { return WindowsHolder.WINDOWS; }
Configuration { public static Configuration windows() { return WindowsHolder.WINDOWS; } }
Configuration { public static Configuration windows() { return WindowsHolder.WINDOWS; } private  Configuration(Builder builder); }
Configuration { public static Configuration windows() { return WindowsHolder.WINDOWS; } 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 windows() { return WindowsHolder.WINDOWS; } 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();  }