SetAccess.java revision 3471
3458N/A @summary Basic test for setWritable/Readable/Executable methods
3458N/A if (!f.setReadOnly())
3458N/A if (!f.setWritable(true, true) ||
3458N/A if (!f.setWritable(false, true) ||
3458N/A if (!f.setWritable(true, false) ||
3458N/A if (!f.setWritable(false, false) ||
3458N/A if (!f.setExecutable(true, true) ||
3458N/A !f.canExecute() ||
3458N/A if (!f.setExecutable(false, true) ||
3458N/A f.canExecute() ||
3458N/A if (!f.setExecutable(true, false) ||
3458N/A !f.canExecute() ||
3458N/A if (!f.setExecutable(false, false) ||
3458N/A f.canExecute() ||
3458N/A if (!f.setReadable(true, true) ||
if (!f.setReadable(false, true) ||
f.canRead() ||
if (!f.setReadable(true, false) ||
!f.canRead() ||
if (!f.setReadable(false, false) ||
f.canRead() ||
if (f.isFile()) {
if (!f.setReadOnly())
if (f.isDirectory()) {
if (f.setWritable(false, true))
if (f.setWritable(false, false))
if (f.setWritable(false))
if (f.setExecutable(false, true))
if (f.setExecutable(false, false))
if (f.setExecutable(false))
if (f.setReadable(false, true))
if (f.setReadable(false, false))
if (f.setReadable(false))