FilesContentMatchers
This trait provides matchers to check the presence of some expected files vs the actual ones and also ways to verify the contents of these files
Attributes
- Graph
- Supertypes
- trait TraversableMatcherstrait NumberOfTimestrait ValueChecksLowImplicitstrait TraversableBaseMatcherstrait LinesContentMatcherstrait Expectationstrait ExpectationsDescriptiontrait TypedEqualtrait ExpectationsCreationtrait ResultCheckstrait MatchResultStackTracetrait DifferenceFilterstrait FileMatcherstrait PathMatchersclass Objecttrait Matchableclass Any
- Known subtypes
- trait ContentMatchersobject ContentMatchers.type
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Matcher[File]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Matcher[File]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Matcher[File]class Objecttrait Matchableclass Any
Inherited classlikes
Matcher to compare the contents of line contents
Matcher to compare the contents of line contents
Attributes
- Inherited from:
- LinesContentBaseMatchers (hidden)
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Matcher[L1]class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- LinesContentBaseMatchers (hidden)
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Matcher[(L1, L2)]class Objecttrait Matchableclass Any
Value members
Concrete methods
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
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
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
Attributes
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
Attributes
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 methods
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if file.isDirectory
matches if new File(path).isDirectory
matches if file.isFile
matches if new File(path).isFile
matches if new File(path).isHidden
matches if new File(path).canRead
matches if new File(path).canWrite
matches if file.isAbsolute
matches if new File(path).isAbsolute
matches if new File(path).exists
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
matches if file.isHidden
matches if file.canRead
Attributes
- Returns:
a matcher checking if the elements are ordered
- Inherited from:
- TraversableBaseMatchers
matches if file.canWrite
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
Attributes
- Inherited from:
- ResultChecks
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
Additional contain methods using to avoid automatic tuple conversions
Additional contain methods using to avoid automatic tuple conversions
Attributes
- Inherited from:
- TraversableBaseMatchers
COLLECTION MATCHERS
COLLECTION MATCHERS
Attributes
- Inherited from:
- TraversableBaseMatchers
ELEMENTS MATCHERS
ELEMENTS MATCHERS
Attributes
- Inherited from:
- TraversableBaseMatchers
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
match if a traversable contains one of (t1, t2)
match if a traversable contains one of (t1, t2)
Attributes
- Inherited from:
- TraversableBaseMatchers
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)
match if traversable contains (x matches .+t+.)
match if traversable contains (x matches .+t+.)
Attributes
- Inherited from:
- TraversableBaseMatchers
match if traversable contains (x matches p)
match if traversable contains (x matches p)
Attributes
- Inherited from:
- TraversableBaseMatchers
does a containAll comparison in both ways
does a containAll comparison in both ways
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Returns:
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns:
an Expectable with a description
- Inherited from:
- ExpectationsCreation
Attributes
- Returns:
an Expectable
- Inherited from:
- ExpectationsCreation
Attributes
- Returns:
an Expectable with a description function
- Inherited from:
- ExpectationsCreation
Attributes
- Returns:
an Expectable with a function to show the element T
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if file.exists
matches if file.getAbsolutePath == path
matches if new File(path).getAbsolutePath == absolutePath
matches if new File(path).getCanonicalPath == canonicalPath
matches if file.getCanonicalPath == path
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if file.list == list
matches if file.getName == name
matches if file.getParent == path
matches if new File(path).getParent == parent
matches if new File(path).getName == name
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)
matches if 2 contents have the same lines
matches if 2 contents have the same lines
Attributes
- Inherited from:
- LinesContentBaseMatchers (hidden)
match if there is a way to size T
match if there is a way to size T
Attributes
- Inherited from:
- TraversableBaseMatchers
match if there is a way to size T
match if there is a way to size T
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
matches if new File(path).list == list(files)
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
Attributes
- Inherited from:
- ResultChecks
Attributes
- Returns:
the result without any side-effects
- Inherited from:
- ResultChecks
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
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for haveSize
alias for haveSize
Attributes
- Inherited from:
- TraversableBaseMatchers
alias for beSorted
alias for beSorted
Attributes
- Inherited from:
- TraversableBaseMatchers
Attributes
- Inherited from:
- ExpectationsCreation
Attributes
- Inherited from:
- ExpectationsCreation
Givens
Inherited givens
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
Attributes
- Inherited from:
- TraversableBaseMatchersLowImplicits (hidden)
Attributes
- Inherited from:
- TraversableBaseMatchersLowImplicits (hidden)
Extensions
Inherited extensions
Attributes
- Inherited from:
- ExpectationsDescription
Attributes
- Inherited from:
- ExpectationsDescription
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
Attributes
- Inherited from:
- DifferenceFilters
! equality matcher on Expectables
! equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
equality matcher on Expectables
equality matcher on Expectables
Attributes
- Inherited from:
- TypedEqual
Attributes
- Returns:
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription
Attributes
- Returns:
an expectable with an alias description
- Inherited from:
- ExpectationsDescription
Attributes
- Returns:
an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value
- Inherited from:
- ExpectationsDescription
Attributes
- Returns:
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns:
an expectable with an alias description, after the value string
- Inherited from:
- ExpectationsDescription
Attributes
- Returns:
an expectable with a function to show the element T
- Inherited from:
- ExpectationsDescription
Implicits
Inherited implicits
Attributes
- Inherited from:
- LinesContentBaseMatchers (hidden)
Attributes
- Inherited from:
- SeqsContents (hidden)