PathMatchers

The PathMatchers trait provides matchers which are applicable to strings representing paths

Companion:
object
class Object
trait Matchable
class Any
object PathMatchers.type

Type members

Inherited classlikes

class PathResultMatcher(result: MatchResult[String])
Inherited from:
PathBeHaveMatchers

Value members

Inherited methods

def aDirectoryPath: PathMatcher
Inherited from:
PathBeHaveMatchers
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 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 beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Inherited from:
PathBaseMatchers
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 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 equalToIgnoringSep(other: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def have: NeutralMatcher[Any]
Inherited from:
BeHaveMatchers
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 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 listPaths(list: String*): PathMatcher

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

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

Inherited from:
PathBaseMatchers
def not: NotMatcher[Any]
Inherited from:
BeHaveMatchers
def parentPath(parent: String): PathMatcher
Inherited from:
PathBeHaveMatchers
def pathName(name: String): PathMatcher
Inherited from:
PathBeHaveMatchers

Implicits

Inherited implicits

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