@Test public void testAttributes() { PosixFileAttributes attrs = provider.readAttributes(file); assertThat(attrs.permissions()).isEqualTo(PosixFilePermissions.fromString("rw-r--r--")); assertThat(attrs.group()).isEqualTo(createGroupPrincipal("group")); assertThat(attrs.fileKey()).isEqualTo(0); }
@Override public PosixFileAttributes readAttributes(File file) { return new Attributes(file); }
PosixAttributeProvider extends AttributeProvider { @Override public PosixFileAttributes readAttributes(File file) { return new Attributes(file); } }
PosixAttributeProvider extends AttributeProvider { @Override public PosixFileAttributes readAttributes(File file) { return new Attributes(file); }  }
PosixAttributeProvider extends AttributeProvider { @Override public PosixFileAttributes readAttributes(File file) { return new Attributes(file); }  @Override String name(); @Override ImmutableSet<String> inherits(); @Override ImmutableSet<String> fixedAttributes(); @SuppressWarnings("unchecked") @Override ImmutableMap<String, ?> defaultValues(Map<String, ?> userProvidedDefaults); @NullableDecl @Override Object get(File file, String attribute); @Override void set(File file, String view, String attribute, Object value, boolean create); @Override Class<PosixFileAttributeView> viewType(); @Override PosixFileAttributeView view(
      FileLookup lookup, ImmutableMap<String, FileAttributeView> inheritedViews); @Override Class<PosixFileAttributes> attributesType(); @Override PosixFileAttributes readAttributes(File file); }
PosixAttributeProvider extends AttributeProvider { @Override public PosixFileAttributes readAttributes(File file) { return new Attributes(file); }  @Override String name(); @Override ImmutableSet<String> inherits(); @Override ImmutableSet<String> fixedAttributes(); @SuppressWarnings("unchecked") @Override ImmutableMap<String, ?> defaultValues(Map<String, ?> userProvidedDefaults); @NullableDecl @Override Object get(File file, String attribute); @Override void set(File file, String view, String attribute, Object value, boolean create); @Override Class<PosixFileAttributeView> viewType(); @Override PosixFileAttributeView view(
      FileLookup lookup, ImmutableMap<String, FileAttributeView> inheritedViews); @Override Class<PosixFileAttributes> attributesType(); @Override PosixFileAttributes readAttributes(File file);  }