ContentMatchers

org.specs2.matcher.ContentMatchers
See theContentMatchers companion trait

Attributes

Companion
trait
Graph
Supertypes
trait TraversableMatchers
trait NumberOfTimes
trait ImplicitParameters
trait ValueChecksLowImplicits
trait LazyParameters
trait FileMatchers
trait PathMatchers
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait MatchResultStackTrace
trait DifferenceFilters
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Inherited classlikes

class Descriptible[T](value: => T)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class ExpectationDescription(description: String)

Attributes

Inherited from:
ExpectationsDescription
Supertypes
class Object
trait Matchable
class Any
class FileResultMatcher[T](result: MatchResult[T])(implicit evidence$14: HasPath[T])

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
case class FirstNDifferencesFilter(n: Int)

Attributes

Inherited from:
DifferenceFilters
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class HasSize[T](s: MatchResult[T])(implicit evidence$16: Sized[T])

Attributes

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

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
ImplicitParameters
Supertypes
class Object
trait Matchable
class Any
case class LinesComparisonMatcher[L1, L2](ls2: L2, all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(implicit evidence$7: LinesContent[L1], evidence$8: LinesContent[L2]) extends Matcher[L1]

Matcher to compare the contents of line contents

Matcher to compare the contents of line contents

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[L1]
class Object
trait Matchable
class Any
Show all
class LinesContentResultMatcher[L1](result: MatchResult[L1])(implicit evidence$12: LinesContent[L1])

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
case class LinesPairComparisonMatcher[L1, L2](all: Boolean, ordered: Boolean, colors: Boolean, filter: DifferenceFilter)(implicit evidence$9: LinesContent[L1], evidence$10: LinesContent[L2]) extends Matcher[(L1, L2)]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[(L1, L2)]
class Object
trait Matchable
class Any
Show all
case class LocalFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)]) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all
case class LocalPathsAndFilesContentMatcher(expectedDir: File, filter: File => Boolean, filesMatcher: Matcher[(File, File)]) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all
case class LocalPathsMatcher(expectedDir: File, filter: File => Boolean) extends Matcher[File]

Attributes

Inherited from:
FilesContentMatchers
Supertypes
trait Serializable
trait Product
trait Equals
trait Matcher[File]
class Object
trait Matchable
class Any
Show all
class OrderedSeqMatchResult[T](result: MatchResult[Seq[T]])(implicit evidence$18: Ordering[T])

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class PathResultMatcher(result: MatchResult[String])

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class TraversableBeHaveMatchers[T](s: MatchResult[Iterable[T]])

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
Supertypes
class Object
trait Matchable
class Any
class TypedEqualExpectation[T](t: => T)

Attributes

Inherited from:
TypedEqual
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def aDirectory[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def aDirectoryPath: PathMatcher

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def aFile[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (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 absolute[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def absolutePath[T : HasPath](path: String): Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def allOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (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 atLeast[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def atMost[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

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

Attributes

Inherited from:
BeHaveMatchers (hidden)
def beADirectory[T : HasPath]: Matcher[T]

matches if file.isDirectory

matches if file.isDirectory

Attributes

Inherited from:
FileBaseMatchers (hidden)
def beADirectoryPath: PathMatcher

matches if new File(path).isDirectory

matches if new File(path).isDirectory

Attributes

Inherited from:
PathBaseMatchers (hidden)
def beAFile[T : HasPath]: Matcher[T]

matches if file.isFile

matches if file.isFile

Attributes

Inherited from:
FileBaseMatchers (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 beAbsolute[T : HasPath]: Matcher[T]

matches if file.isAbsolute

matches if file.isAbsolute

Attributes

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

matches if file.isHidden

matches if file.isHidden

Attributes

Inherited from:
FileBaseMatchers (hidden)
def beReadable[T : HasPath]: Matcher[T]

matches if file.canRead

matches if file.canRead

Attributes

Inherited from:
FileBaseMatchers (hidden)
def beSorted[T : Ordering]: OrderingMatcher[T]

Attributes

Returns

a matcher checking if the elements are ordered

Inherited from:
TraversableBaseMatchers (hidden)
def beWritable[T : HasPath]: Matcher[T]

matches if file.canWrite

matches if file.canWrite

Attributes

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

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
protected def checkFailure[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to throw exceptions when checking the match result

this method can be overridden to throw exceptions when checking the match result

Attributes

Inherited from:
ExpectationsCreation
protected def checkMatchResultFailure[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to throw exceptions when checking the match result

this method can be overridden to throw exceptions when checking the match result

Attributes

Inherited from:
ExpectationsCreation
protected def checkResultFailure(r: => Result): Result

this method can be overridden to throw exceptions when checking the result

this method can be overridden to throw exceptions when checking the result

Attributes

Inherited from:
ExpectationsCreation
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T], t22: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T], t21: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T], t20: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T], t19: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T], t18: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T], t17: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T], t16: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T], t15: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T], t14: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T], t13: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T], t12: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T], t11: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T], t10: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T], t9: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T], t8: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T], t7: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T], t6: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T], t5: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T], t4: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T], t3: ValueCheck[T]): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](t1: ValueCheck[T], t2: ValueCheck[T]): ContainWithResultSeq[T]

Additional contain methods using to avoid automatic tuple conversions

Additional contain methods using to avoid automatic tuple conversions

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](cm: ContainWithResultSeq[T]): ContainWithResultSeq[T]

COLLECTION MATCHERS

COLLECTION MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def contain[T](check: ValueCheck[T]): ContainWithResult[T]

ELEMENTS MATCHERS

ELEMENTS MATCHERS

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containAllOf[T : Diffable](seq: Seq[T]): ContainWithResultSeq[T]

match if a traversable contains all the elements of seq (and maybe more)

match if a traversable contains all the elements of seq (and maybe more)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containAnyOf[T](seq: Seq[T]): ContainWithResult[T]

match if a traversable contains one of (t1, t2)

match if a traversable contains one of (t1, t2)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containLines[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

matches if 1 lines content contains the lines of the other one

matches if 1 lines content contains the lines of the other one

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def containMatch[T](t: => String): Matcher[Iterable[T]]

match if traversable contains (x matches .+t+.)

match if traversable contains (x matches .+t+.)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containPattern[T](t: => String): Matcher[Iterable[T]]

match if traversable contains (x matches p)

match if traversable contains (x matches p)

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def containTheSameElementsAs[T](seq: Seq[T], equality: (T, T) => Boolean): Matcher[Iterable[T]]

does a containAll comparison in both ways

does a containAll comparison in both ways

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: String => String): Expectable[T]

Attributes

Returns

an Expectable with a description function

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]

Attributes

Returns

an Expectable with a description

Inherited from:
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]

Attributes

Returns

an Expectable

Inherited from:
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]

Attributes

Returns

an Expectable with a function to show the element T

Inherited from:
ExpectationsCreation
def eachOf[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

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

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def exactly[T](checks: ValueCheck[T]*): ContainWithResultSeq[T]

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def exist[T : HasPath]: Matcher[T]

matches if file.exists

matches if file.exists

Attributes

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

Attributes

Inherited from:
BeHaveMatchers (hidden)
def haveAbsolutePath[T : HasPath](path: String): Matcher[T]

matches if file.getAbsolutePath == path

matches if file.getAbsolutePath == path

Attributes

Inherited from:
FileBaseMatchers (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 haveCanonicalPath[T : HasPath](path: String): Matcher[T]

matches if file.getCanonicalPath == path

matches if file.getCanonicalPath == path

Attributes

Inherited from:
FileBaseMatchers (hidden)
def haveLength[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveLength[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

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

matches if file.list == list

matches if file.list == list

Attributes

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

matches if file.getName == name

matches if file.getName == name

Attributes

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

matches if file.getParent == path

matches if file.getParent == path

Attributes

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

check that all the paths in expectedDir are the same as the ones in actualDir then check that all the files in expectedDir have the same contents as the files in actualDir when they are present

check that all the paths in expectedDir are the same as the ones in actualDir then check that all the files in expectedDir have the same contents as the files in actualDir when they are present

Attributes

Inherited from:
FilesContentMatchers

check that all the files in expectedDir have the same contents as the files in actualDir when they are present The default matcher is assuming that files are text files which must be compared line by line

check that all the files in expectedDir have the same contents as the files in actualDir when they are present The default matcher is assuming that files are text files which must be compared line by line

Attributes

Inherited from:
FilesContentMatchers
def haveSameLines[L1 : LinesContent, L2 : LinesContent]: LinesPairComparisonMatcher[L1, L2]

matches if 2 contents, as a pair, have the same lines

matches if 2 contents, as a pair, have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def haveSameLinesAs[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

matches if 2 contents have the same lines

matches if 2 contents have the same lines

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
def haveSameMD5: Matcher[(File, File)]

match 2 files if they have the same MD5 digest

match 2 files if they have the same MD5 digest

Attributes

Inherited from:
FilesContentMatchers
def haveSameMD5As(expected: File): Matcher[File]

match 2 files if they have the same MD5 digest

match 2 files if they have the same MD5 digest

Attributes

Inherited from:
FilesContentMatchers
def haveSamePathsAs(expectedDir: File): LocalPathsMatcher

check that all the paths in expectedDir are the same as the ones in actualDir

check that all the paths in expectedDir are the same as the ones in actualDir

Attributes

Inherited from:
FilesContentMatchers
def haveSize[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def haveSize[T : Sized](n: Int): SizedMatcher[T]

match if there is a way to size T

match if there is a way to size T

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def hidden[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def length[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def length[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (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)
protected def mapMatchResult[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to intercept a MatchResult and change its message before it is thrown

this method can be overridden to intercept a MatchResult and change its message before it is thrown

Attributes

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

Attributes

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

Attributes

Inherited from:
BeHaveMatchers (hidden)
def parent[T : HasPath](path: String): Matcher[T]

Attributes

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

Attributes

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

Attributes

Inherited from:
PathBeHaveMatchers (hidden)
def paths[T : HasPath](list: String): Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def readable[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
def sameLinesAs[L1 : LinesContent, L2 : LinesContent](ls2: L2): LinesComparisonMatcher[L1, L2]

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
protected def sandboxMatchResult[T](mr: => MatchResult[T]): MatchResult[T]

Attributes

Returns

the match result without any side-effects

Inherited from:
ExpectationsCreation
protected def setStacktrace[T](m: MatchResult[T]): MatchResult[T]

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

Attributes

Inherited from:
MatchResultStackTrace
def size[T : Sized](check: ValueCheck[Int]): SizedCheckedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def size[T : Sized](n: Int): SizedMatcher[T]

alias for haveSize

alias for haveSize

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def sorted[T : Ordering]: OrderingMatcher[T]

alias for beSorted

alias for beSorted

Attributes

Inherited from:
TraversableBaseMatchers (hidden)
def writable[T : HasPath]: Matcher[T]

Attributes

Inherited from:
FileBeHaveMatchers (hidden)

Implicits

Inherited implicits

implicit def checkableSeqIsContainCheckSeq[T](seq: Seq[T])(implicit to: T => ValueCheck[T]): Seq[ValueCheck[T]]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)
implicit def describe[T](t: => T): Descriptible[T]

describe a value with the aka method

describe a value with the aka method

Attributes

Inherited from:
ExpectationsDescription
implicit def describeExpectation(description: String): ExpectationDescription

Attributes

Inherited from:
ExpectationsDescription
implicit protected val fileContentForMatchers: LinesContent[File]

Attributes

Inherited from:
LinesContentBaseMatchers (hidden)
implicit def functionIsValueCheck[T, R : AsResult](f: T => R): ValueCheck[T]

a function returning an object having an AsResult instance can check a value

a function returning an object having an AsResult instance can check a value

Attributes

Inherited from:
ValueChecksLowImplicits
implicit lazy val implicitParameter: ImplicitParam

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter1: ImplicitParam1

Attributes

Inherited from:
ImplicitParameters

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter2: ImplicitParam2

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter3: ImplicitParam3

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter4: ImplicitParam4

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter5: ImplicitParam5

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter6: ImplicitParam6

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter7: ImplicitParam7

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter8: ImplicitParam8

Attributes

Inherited from:
ImplicitParameters
implicit lazy val implicitParameter9: ImplicitParam9

Attributes

Inherited from:
ImplicitParameters
implicit def lazyParameter[T](value: => T): LazyParameter[T]

transform a value to a zero-arg function returning that value

transform a value to a zero-arg function returning that value

Attributes

Inherited from:
LazyParameters
implicit def matcherSeqIsContainCheckSeq[T](seq: Seq[Matcher[T]]): Seq[ValueCheck[T]]

Attributes

Inherited from:
TraversableBaseMatchersLowImplicits (hidden)
implicit def orderedSeqMatchResult[T : Ordering](result: MatchResult[Seq[T]]): OrderedSeqMatchResult[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
implicit protected def seqContentForMatchers[T]: LinesContent[Seq[T]]

Attributes

Inherited from:
SeqsContents (hidden)
implicit def sized[T : Sized](s: MatchResult[T]): HasSize[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
implicit def timesFor(n: Int): Times

This implicit definition allows to declare a number of times 3.times

This implicit definition allows to declare a number of times 3.times

Attributes

Inherited from:
NumberOfTimes

Attributes

Inherited from:
DifferenceFilters
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

Attributes

Inherited from:
FileBeHaveMatchers (hidden)
implicit def toLinesContentResultMatcher[L1 : LinesContent](result: MatchResult[L1]): LinesContentResultMatcher[L1]

matcher aliases and implicits to use with BeVerb and HaveVerb

matcher aliases and implicits to use with BeVerb and HaveVerb

Attributes

Inherited from:
LinesContentBeHaveMatchers (hidden)
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)
implicit def traversable[T](s: MatchResult[Iterable[T]]): TraversableBeHaveMatchers[T]

Attributes

Inherited from:
TraversableBeHaveMatchers (hidden)
implicit def typedEqualExpectation[T](t: => T): TypedEqualExpectation[T]

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

A value can be tested against another with the === operator. It is equivalent to writing a must_== b

Attributes

Inherited from:
TypedEqual