PathMatchers

org.specs2.matcher.PathMatchers
See thePathMatchers companion object
trait PathMatchers

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PathMatchers.type

Members list

Type members

Inherited classlikes

class PathResultMatcher(result: MatchResult[String])

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def aDirectoryPath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def aFilePath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def aHiddenPath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def aReadablePath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def aWritablePath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def anAbsolutePath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def anExistingPath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def asAbsolutePath(name: String): PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def asCanonicalPath(name: String): PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def be: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

Attributes

Inherited from:
PathBaseMatchers (hidden)
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

Attributes

Inherited from:
PathBaseMatchers (hidden)
def equalToIgnoringSep(other: String): PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def have: NeutralMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def haveAsAbsolutePath(path: String): PathMatcher

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

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

Attributes

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

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

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

Attributes

Inherited from:
PathBaseMatchers (hidden)
def haveParentPath(parent: String): PathMatcher

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

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

Attributes

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

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

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

Attributes

Inherited from:
PathBaseMatchers (hidden)
def listPaths(list: String*): PathMatcher

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

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

Attributes

Inherited from:
PathBaseMatchers (hidden)
def not: NotMatcher[Any]

Attributes

Inherited from:
BeHaveMatchers (hidden)
def parentPath(parent: String): PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def pathName(name: String): PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)

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

Attributes

Inherited from:
PathBeHaveMatchers (hidden)