Home | History | Annotate | Download | only in attribute

Lines Matching refs:check

45     static void check(boolean okay, String msg) {
54 check(attrs.isDirectory(), "is a directory");
55 check(!attrs.isRegularFile(), "is not a regular file");
56 check(!attrs.isSymbolicLink(), "is not a link");
57 check(!attrs.isOther(), "is not other");
61 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS),
69 check(attrs.isRegularFile(), "is a regular file");
70 check(!attrs.isDirectory(), "is not a directory");
71 check(!attrs.isSymbolicLink(), "is not a link");
72 check(!attrs.isOther(), "is not other");
76 check(f.length() == attrs.size(), "size should be the same");
77 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS),
81 // re-read attribtues, and check they match
88 check(attrs.lastModifiedTime().equals(dirAttrs.lastModifiedTime()),
92 check (!(attrs instanceof PosixFileAttributes),
101 check(attrs.isSymbolicLink(), "is a link");
102 check(!attrs.isDirectory(), "is a directory");
103 check(!attrs.isRegularFile(), "is not a regular file");
104 check(!attrs.isOther(), "is not other");
116 // check attributes of directory and file