Lines Matching refs:link
81 // Following tests use a symbolic link so skip if not supported
85 Path link = dir.resolve("link");
86 Files.createSymbolicLink(link, file);
89 testAttributes(Files.getFileAttributeView(link, DosFileAttributeView.class));
95 .getFileAttributeView(link, DosFileAttributeView.class, NOFOLLOW_LINKS));
97 // access to link attributes not supported
101 // set all attributes on link
102 // run test on target of link (which leaves them all un-set)
103 // check that attributes of link remain all set
105 .getFileAttributeView(link, DosFileAttributeView.class, NOFOLLOW_LINKS), true);
107 .getFileAttributeView(link, DosFileAttributeView.class));
109 Files.getFileAttributeView(link, DosFileAttributeView.class, NOFOLLOW_LINKS)
116 .getFileAttributeView(link, DosFileAttributeView.class, NOFOLLOW_LINKS), false);
119 // run test on link (which leaves them all un-set)
121 setAll(Files.getFileAttributeView(link, DosFileAttributeView.class), true);
123 .getFileAttributeView(link, DosFileAttributeView.class, NOFOLLOW_LINKS));
124 attrs = Files.getFileAttributeView(link, DosFileAttributeView.class).readAttributes();
129 setAll(Files.getFileAttributeView(link, DosFileAttributeView.class), false);
131 TestUtil.deleteUnchecked(link);