FileMatchers

org.specs2.matcher.FileMatchers
See theFileMatchers companion object
trait FileMatchers extends PathMatchers

The FileMatchers trait provides matchers which are applicable to files

Attributes

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

Members list

Value members

Concrete methods

def beADirectory: Matcher[HasPath]

matches if file.isDirectory

matches if file.isDirectory

Attributes

def beAFile: Matcher[HasPath]

matches if file.isFile

matches if file.isFile

Attributes

def beAbsolute: Matcher[HasPath]

matches if file.isAbsolute

matches if file.isAbsolute

Attributes

def beHidden: Matcher[HasPath]

matches if file.isHidden

matches if file.isHidden

Attributes

def beReadable: Matcher[HasPath]

matches if file.canRead

matches if file.canRead

Attributes

def beWritable: Matcher[HasPath]

matches if file.canWrite

matches if file.canWrite

Attributes

def exist: Matcher[HasPath]

matches if file.exists

matches if file.exists

Attributes

def haveAbsolutePath(path: String): Matcher[HasPath]

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

Attributes

def haveCanonicalPath(path: String): Matcher[HasPath]

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

Attributes

def haveList(list: String): Matcher[HasPath]

matches if file.list == list

matches if file.list == list

Attributes

def haveName(name: String): Matcher[HasPath]

matches if file.getName == name

matches if file.getName == name

Attributes

def haveParent(path: String): Matcher[HasPath]

matches if file.getParent == path

matches if file.getParent == path

Attributes

Inherited methods

def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Attributes

Inherited from:
PathMatchers
def beAFilePath: PathMatcher

matches if new File(path).isFile

matches if new File(path).isFile

Attributes

Inherited from:
PathMatchers
def beAHiddenPath: PathMatcher

matches if new File(path).isHidden

matches if new File(path).isHidden

Attributes

Inherited from:
PathMatchers
def beAReadablePath: PathMatcher

matches if new File(path).canRead

matches if new File(path).canRead

Attributes

Inherited from:
PathMatchers
def beAWritablePath: PathMatcher

matches if new File(path).canWrite

matches if new File(path).canWrite

Attributes

Inherited from:
PathMatchers
def beAnAbsolutePath: PathMatcher

matches if new File(path).isAbsolute

matches if new File(path).isAbsolute

Attributes

Inherited from:
PathMatchers
def beAnExistingPath: PathMatcher

matches if new File(path).exists

matches if new File(path).exists

Attributes

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

Attributes

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

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

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

Attributes

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

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

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

Attributes

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

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

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

Attributes

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

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

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

Attributes

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

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

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

Attributes

Inherited from:
PathMatchers