public void assertAbsolute(final String expectedFileOrDirName){
  File fileFound=null;
  for (  final File file : actualFiles) {
    if (expectedFileOrDirName.equals(file.getPath())) {
      fileFound=file;
    }
  }
  if (fileFound == null) {
    String message="Could not find file matching path: " + expectedFileOrDirName + "Amongst remaining files which have yet to be asserted:\n";
    for (    final File file : actualFiles) {
      message+="    [" + file.getPath() + "]\n";
    }
    fail(message);
  }
 else {
    actualFiles.remove(fileFound);
  }
}

public void assertAbsolute ( final String expectedFileOrDirName ) { File fileFound = null ; for ( final File file : actualFiles ) { if ( expectedFileOrDirName . equals ( file . getPath ( ) ) ) { fileFound = file ; } } if ( fileFound == null ) { String message = "Could not find file matching path: " + expectedFileOrDirName + "Amongst remaining files which have yet to be asserted:\n" ; for ( final File file : actualFiles ) { message += "    [" + file . getPath ( ) + "]\n" ; } fail ( message ) ; } else { actualFiles . remove ( fileFound ) ; } }
assert the absolute path against files which have yet to be asserted .
