The ContentMatchers trait provides matchers to make comparisons between files, sequences,...
- Companion
- object
Type members
Inherited classlikes
Matcher to compare the contents of line contents
Matcher to compare the contents of line contents
- Inherited from
- LinesContentBaseMatchers
- Inherited from
- LinesContentBaseMatchers
- Inherited from
- FilesContentMatchers
- Inherited from
- FilesContentMatchers
Value members
Inherited methods
matches if new File(path).isDirectory
matches if new File(path).isDirectory
- Inherited from
- PathMatchers
matches if new File(path).isAbsolute
matches if new File(path).isAbsolute
- Inherited from
- PathMatchers
matches if 2 paths are the same regardless of their separators
matches if 2 paths are the same regardless of their separators
- Inherited from
- PathMatchers
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
- Inherited from
- ResultChecks
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
- Inherited from
- TraversableBaseMatchers
Additional contain methods using to avoid automatic tuple conversions
Additional contain methods using to avoid automatic tuple conversions
- 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)
- Inherited from
- TraversableBaseMatchers
match if a traversable contains one of (t1, t2)
match if a traversable contains one of (t1, t2)
- 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
- Inherited from
- LinesContentBaseMatchers
match if traversable contains (x matches .+t+.)
match if traversable contains (x matches .+t+.)
- Inherited from
- TraversableBaseMatchers
match if traversable contains (x matches p)
match if traversable contains (x matches p)
- Inherited from
- TraversableBaseMatchers
does a containAll comparison in both ways
does a containAll comparison in both ways
- Inherited from
- TraversableBaseMatchers
matches if file.getAbsolutePath == path
matches if file.getAbsolutePath == path
- Inherited from
- FileMatchers
matches if new File(path).getAbsolutePath == absolutePath
matches if new File(path).getAbsolutePath == absolutePath
- Inherited from
- PathMatchers
matches if new File(path).getCanonicalPath == canonicalPath
matches if new File(path).getCanonicalPath == canonicalPath
- Inherited from
- PathMatchers
matches if file.getCanonicalPath == path
matches if file.getCanonicalPath == path
- Inherited from
- FileMatchers
matches if new File(path).getParent == parent
matches if new File(path).getParent == parent
- Inherited from
- PathMatchers
matches if new File(path).getName == name
matches if new File(path).getName == name
- Inherited from
- PathMatchers
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
- 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
- Inherited from
- FilesContentMatchers
matches if 2 contents, as a pair, have the same lines
matches if 2 contents, as a pair, have the same lines
- Inherited from
- LinesContentBaseMatchers
matches if 2 contents have the same lines
matches if 2 contents have the same lines
- Inherited from
- LinesContentBaseMatchers
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
- Inherited from
- FilesContentMatchers
match 2 files if they have the same MD5 digest
match 2 files if they have the same MD5 digest
- Inherited from
- FilesContentMatchers
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
- Inherited from
- FilesContentMatchers
match if there is a way to size T
match if there is a way to size T
- Inherited from
- TraversableBaseMatchers
match if there is a way to size T
match if there is a way to size T
- Inherited from
- TraversableBaseMatchers
matches if new File(path).list == list(files)
matches if new File(path).list == list(files)
- Inherited from
- PathMatchers
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
- 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
- Inherited from
- MatchResultStackTrace
Inherited fields
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
- Inherited from
- ValueChecksLowImplicits
Extensions
Inherited extensions
- Inherited from
- ExpectationsDescription
- Inherited from
- ExpectationsDescription
- 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
- Returns
an expectable with an alias description, after the value string
- Inherited from
- ExpectationsDescription
- Returns
an expectable with an alias description, after the value string
- Inherited from
- ExpectationsDescription
- Returns
an expectable with a function to show the element T
- Inherited from
- ExpectationsDescription