boolean exec, link, file;
exec = link = file = false;
while (fw.hasNext()) {
fw.next();
FileInfo fi = fw.file();
String fn = fw.name().toString();
if (fn.equals("file-link")) {
link = true;
errorCollector.assertTrue("Symlink shall exist despite the fact it points to nowhere", fi.exists());
errorCollector.assertFalse(fi.isExecutable());
errorCollector.assertTrue(fi.isSymlink());
} else if (fn.equals("file-exec")) {
exec = true;
errorCollector.assertTrue(fi.isExecutable());
errorCollector.assertFalse(fi.isSymlink());
} else if (fn.equals("regular-file")) {
file = true;
errorCollector.assertFalse(fi.isExecutable());
errorCollector.assertFalse(fi.isSymlink());
}
}
errorCollector.assertTrue("Missing executable file in WC", exec);
errorCollector.assertTrue("Missing symlink in WC", link);
errorCollector.assertTrue("Missing regular file in WC", file);