Matcher to compare the contents of line contents
Matcher to compare the contents of line contents
matches if file.isDirectory
matches if file.isDirectory
matches if new File(path).isDirectory
matches if new File(path).isDirectory
matches if file.isFile
matches if file.isFile
matches if new File(path).isFile
matches if new File(path).isFile
matches if new File(path).isHidden
matches if new File(path).isHidden
matches if new File(path).canRead
matches if new File(path).canRead
matches if new File(path).canWrite
matches if new File(path).canWrite
matches if file.isAbsolute
matches if file.isAbsolute
matches if new File(path).isAbsolute
matches if new File(path).isAbsolute
matches if new File(path).exists
matches if new File(path).exists
matches if 2 paths are the same regardless of their separators
matches if 2 paths are the same regardless of their separators
matches if file.isHidden
matches if file.isHidden
matches if file.canRead
matches if file.canRead
matches if file.canWrite
matches if file.canWrite
matches if 1 lines content contains the lines of the other one
matches if 1 lines content contains the lines of the other one
matches if file.exists
matches if file.exists
matches if file.getAbsolutePath == path
matches if file.getAbsolutePath == path
matches if new File(path).getAbsolutePath == absolutePath
matches if new File(path).getAbsolutePath == absolutePath
matches if new File(path).getCanonicalPath == canonicalPath
matches if new File(path).getCanonicalPath == canonicalPath
matches if file.getCanonicalPath == path
matches if file.getCanonicalPath == path
matches if file.list == list
matches if file.list == list
matches if file.getName == name
matches if file.getName == name
matches if file.getParent == path
matches if file.getParent == path
matches if new File(path).getParent == parent
matches if new File(path).getParent == parent
matches if new File(path).getName == name
matches if new File(path).getName == name
check that all the paths in expectedDir
are the same as the ones in actualDir
then check that all the files in expectedDir
have the same contents as the files in actualDir
when they are present
check that all the paths in expectedDir
are the same as the ones in actualDir
then check that all the files in expectedDir
have the same contents as the files in actualDir
when they are present
check that all the files in expectedDir
have the same contents as the files in actualDir
when they are present
The default matcher is assuming that files are text files which must be compared line by line
check that all the files in expectedDir
have the same contents as the files in actualDir
when they are present
The default matcher is assuming that files are text files which must be compared line by line
matches if 2 contents, as a pair, have the same lines
matches if 2 contents, as a pair, have the same lines
matches if 2 contents have the same lines
matches if 2 contents have the same lines
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
check that all the paths in expectedDir
are the same as the ones in actualDir
check that all the paths in expectedDir
are the same as the ones in actualDir
matches if new File(path).list == list(files)
matches if new File(path).list == list(files)
matcher aliases and implicits to use with BeVerb and HaveVerb
matcher aliases and implicits to use with BeVerb and HaveVerb
matcher aliases and implicits to use with BeVerb and HaveVerb
matcher aliases and implicits to use with BeVerb and HaveVerb
matcher aliases and implicits to use with be / have + matcher
matcher aliases and implicits to use with be / have + matcher