FileMatchers

The FileMatchers trait provides matchers which are applicable to files

Companion:
object
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class FileResultMatcher[T](result: MatchResult[T])(implicit evidence$14: HasPath[T])
Inherited from:
FileBeHaveMatchers
class PathResultMatcher(result: MatchResult[String])
Inherited from:
PathBeHaveMatchers

Value members

Inherited methods

def aDirectory[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers
def aDirectoryPath: PathMatcher
Inherited from:
PathBeHaveMatchers
def aFile[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers
def aFilePath: PathMatcher
Inherited from:
PathBeHaveMatchers
def aHiddenPath: PathMatcher
Inherited from:
PathBeHaveMatchers
def aReadablePath: PathMatcher
Inherited from:
PathBeHaveMatchers
def aWritablePath: PathMatcher
Inherited from:
PathBeHaveMatchers
def absolute[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers
def absolutePath[T : HasPath](path: String): Matcher[T]
Inherited from:
FileBeHaveMatchers
def anAbsolutePath: PathMatcher
Inherited from:
PathBeHaveMatchers
def anExistingPath: PathMatcher
Inherited from:
PathBeHaveMatchers
def asAbsolutePath(name: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def asCanonicalPath(name: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def be: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
def beADirectory[T : HasPath]: Matcher[T]

matches if file.isDirectory

matches if file.isDirectory

Inherited from:
FileBaseMatchers
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Inherited from:
PathBaseMatchers
def beAFile[T : HasPath]: Matcher[T]

matches if file.isFile

matches if file.isFile

Inherited from:
FileBaseMatchers
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Inherited from:
PathBaseMatchers
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Inherited from:
PathBaseMatchers
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Inherited from:
PathBaseMatchers
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Inherited from:
PathBaseMatchers
def beAbsolute[T : HasPath]: Matcher[T]

matches if file.isAbsolute

matches if file.isAbsolute

Inherited from:
FileBaseMatchers
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Inherited from:
PathBaseMatchers
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

Inherited from:
PathBaseMatchers
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:
PathBaseMatchers
def beHidden[T : HasPath]: Matcher[T]

matches if file.isHidden

matches if file.isHidden

Inherited from:
FileBaseMatchers
def beReadable[T : HasPath]: Matcher[T]

matches if file.canRead

matches if file.canRead

Inherited from:
FileBaseMatchers
def beWritable[T : HasPath]: Matcher[T]

matches if file.canWrite

matches if file.canWrite

Inherited from:
FileBaseMatchers
def canonicalPath[T : HasPath](path: String): Matcher[T]
Inherited from:
FileBeHaveMatchers
def equalToIgnoringSep(other: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def exist[T : HasPath]: Matcher[T]

matches if file.exists

matches if file.exists

Inherited from:
FileBaseMatchers
def have: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
def haveAbsolutePath[T : HasPath](path: String): Matcher[T]

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

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

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

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

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

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

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

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

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

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

matches if file.list == list

matches if file.list == list

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

matches if file.getName == name

matches if file.getName == name

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

matches if file.getParent == path

matches if file.getParent == path

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

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

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

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

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

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

Inherited from:
PathBaseMatchers
def hidden[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers
def listPaths(list: String*): PathMatcher

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

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

Inherited from:
PathBaseMatchers
def name[T : HasPath](name: String): Matcher[T]
Inherited from:
FileBeHaveMatchers
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def parent[T : HasPath](path: String): Matcher[T]
Inherited from:
FileBeHaveMatchers
def parentPath(parent: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def pathName(name: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def paths[T : HasPath](list: String): Matcher[T]
Inherited from:
FileBeHaveMatchers
def readable[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers
def writable[T : HasPath]: Matcher[T]
Inherited from:
FileBeHaveMatchers

Implicits

Inherited implicits

implicit def toFileResultMatcher[T : HasPath](result: MatchResult[T]): FileResultMatcher[T]

matcher aliases and implicits to use with BeVerb and HaveVerb

matcher aliases and implicits to use with BeVerb and HaveVerb

Inherited from:
FileBeHaveMatchers
implicit def toPathResultMatcher(result: MatchResult[String]): PathResultMatcher

matcher aliases and implicits to use with be / have + matcher

matcher aliases and implicits to use with be / have + matcher

Inherited from:
PathBeHaveMatchers