FileMatchers

object FileMatchers extends FileMatchers
Companion:
class
class Object
trait Matchable
class Any

Value members

Inherited methods

def beADirectory: Matcher[HasPath]

matches if file.isDirectory

matches if file.isDirectory

Inherited from:
FileMatchers
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Inherited from:
PathMatchers
def beAFile: Matcher[HasPath]

matches if file.isFile

matches if file.isFile

Inherited from:
FileMatchers
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Inherited from:
PathMatchers
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Inherited from:
PathMatchers
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Inherited from:
PathMatchers
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Inherited from:
PathMatchers
def beAbsolute: Matcher[HasPath]

matches if file.isAbsolute

matches if file.isAbsolute

Inherited from:
FileMatchers
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Inherited from:
PathMatchers
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

Inherited from:
PathMatchers
def beEqualToIgnoringSep(other: String): PathMatcher

matches if 2 paths are the same regardless of their separators

matches if 2 paths are the same regardless of their separators

Inherited from:
PathMatchers
def beHidden: Matcher[HasPath]

matches if file.isHidden

matches if file.isHidden

Inherited from:
FileMatchers
def beReadable: Matcher[HasPath]

matches if file.canRead

matches if file.canRead

Inherited from:
FileMatchers
def beWritable: Matcher[HasPath]

matches if file.canWrite

matches if file.canWrite

Inherited from:
FileMatchers
def exist: Matcher[HasPath]

matches if file.exists

matches if file.exists

Inherited from:
FileMatchers
def haveAbsolutePath(path: String): Matcher[HasPath]

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

Inherited from:
FileMatchers
def haveAsAbsolutePath(path: String): PathMatcher

matches if new File(path).getAbsolutePath == absolutePath

matches if new File(path).getAbsolutePath == absolutePath

Inherited from:
PathMatchers
def haveAsCanonicalPath(path: String): PathMatcher

matches if new File(path).getCanonicalPath == canonicalPath

matches if new File(path).getCanonicalPath == canonicalPath

Inherited from:
PathMatchers
def haveCanonicalPath(path: String): Matcher[HasPath]

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

Inherited from:
FileMatchers
def haveList(list: String): Matcher[HasPath]

matches if file.list == list

matches if file.list == list

Inherited from:
FileMatchers
def haveName(name: String): Matcher[HasPath]

matches if file.getName == name

matches if file.getName == name

Inherited from:
FileMatchers
def haveParent(path: String): Matcher[HasPath]

matches if file.getParent == path

matches if file.getParent == path

Inherited from:
FileMatchers
def haveParentPath(parent: String): PathMatcher

matches if new File(path).getParent == parent

matches if new File(path).getParent == parent

Inherited from:
PathMatchers
def havePathName(name: String): PathMatcher

matches if new File(path).getName == name

matches if new File(path).getName == name

Inherited from:
PathMatchers
def listPaths(list: String*): PathMatcher

matches if new File(path).list == list(files)

matches if new File(path).list == list(files)

Inherited from:
PathMatchers