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