- Companion:
- object
Type members
Inherited classlikes
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- EitherBeHaveMatchers
Exception matcher checking the type of a thrown exception.
Exception matcher checking the type of a thrown exception.
- Inherited from:
- ExceptionBaseMatchers
This matchers matches exception instances.
This matchers matches exception instances.
- See also:
throwA
- Inherited from:
- ExceptionBaseMatchers
Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups
Matcher to find if the regexp a is found inside b. This matcher can be specialized to a FindMatcherWithGroups which will also check the found groups
- Inherited from:
- StringBaseMatchers
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Inherited from:
- StringBaseMatchers
Matcher to find if the pattern p is found inside b.
Matcher to find if the pattern p is found inside b.
- Inherited from:
- StringBaseMatchers
Matcher to find if the Regex r is found inside b.
Matcher to find if the Regex r is found inside b.
- Inherited from:
- StringBaseMatchers
Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected
Matcher to find if the regexp a is found inside b. This matcher checks if the found groups are really the ones expected
- Inherited from:
- StringBaseMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
Value members
Inherited methods
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
- Inherited from:
- AnyBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beMatching but matching just a fragment of the string
alias for beMatching but matching just a fragment of the string
- Inherited from:
- StringBaseMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
- Inherited from:
- NumericBaseMatchers
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
apply a matcher atLeast one value
apply a matcher atLeast one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value
verify the function f for at least one value
- Inherited from:
- SequenceMatchersCreation
verify the function f for at least one value, where the PartialFunction is defined
verify the function f for at least one value, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
matches if a is null when v is null and a is not null when v is not null
matches if a is null when v is null and a is not null when v is not null
- Inherited from:
- AnyBaseMatchers
matches if a value is between 2 others according to an Ordering
matches if a value is between 2 others according to an Ordering
- Inherited from:
- NumericBaseMatchers
matches if target - actual < 10 pow (log actual - significantDigits)
matches if target - actual < 10 pow (log actual - significantDigits)
- Inherited from:
- NumericBaseMatchers
matches if the partial function is defined at those values
matches if the partial function is defined at those values
- Inherited from:
- MapBaseMatchers
matches if the partial function is defined at those values and return expected values
matches if the partial function is defined at those values and return expected values
- Inherited from:
- MapBaseMatchers
matches if the value returns a successful result when applied to a PartialFunction
matches if the value returns a successful result when applied to a PartialFunction
- Inherited from:
- AnyBaseMatchers
matches if b matches the pattern a
matches if b matches the pattern a
- Inherited from:
- StringBaseMatchers
matches if b matches the regular expression a
matches if b matches the regular expression a
- Inherited from:
- StringBaseMatchers
alias for the adventurous: 5 must (be[(2, 7)
[`)
alias for the adventurous: 5 must (be[(2, 7)
[`)
- Inherited from:
- NumericBaseMatchers
alias for the adventurous: 5 must (be](2, 7)
[`)
alias for the adventurous: 5 must (be](2, 7)
[`)
- Inherited from:
- NumericBaseMatchers
matches if a.toLowerCase.trim != b.toLowerCase.trim
matches if a.toLowerCase.trim != b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a.toLowerCase.trim = b.toLowerCase.trim
matches if a.toLowerCase.trim = b.toLowerCase.trim
- Inherited from:
- StringBaseMatchers
matches if a == b after an implicit conversion
matches if a == b after an implicit conversion
- Inherited from:
- AnyBaseMatchers
alias for beGreaterThanOrEqualTo
alias for beGreaterThanOrEqualTo
- Inherited from:
- NumericBaseMatchers
this method can be overriden to throw exceptions when checking the match result
this method can be overriden to throw exceptions when checking the match result
- Definition Classes
- ThrownExpectables -> ExpectationsCreation
- Inherited from:
- ThrownExpectables
- 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
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
- Definition Classes
- ShouldThrownExpectables -> ShouldExpectations
- Inherited from:
- ShouldThrownExpectables
- Returns:
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyMatchers
- Value parameters:
- sleep
the function applied on the retry number (first is 1)
- Returns:
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyMatchers
- Returns:
a matcher that will retry the nested matcher a given number of times
- Inherited from:
- EventuallyResults
- Value parameters:
- sleep
the function applied on the retry number (first is 1)
- Returns:
a matcher that will retry the nested matcher a given number of times
eventually(retries = 2, sleep = _ * 100.milliseconds) { aResult }
- Inherited from:
- EventuallyResults
matches if the regexp r is found inside b
matches if the regexp r is found inside b
- Inherited from:
- StringBaseMatchers
matches if the pattern p is found inside b
matches if the pattern p is found inside b
- Inherited from:
- StringBaseMatchers
matches if the regexp a is found inside b
matches if the regexp a is found inside b
- Inherited from:
- StringBaseMatchers
apply a matcher for all values
apply a matcher for all values
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, stopping after the first failure
verify the function f for all the values, stopping after the first failure
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
verify the function f for all the values, stopping after the first failure, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, and collect all failures
verify the function f for all the values, and collect all failures
- Inherited from:
- SequenceMatchersCreation
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
verify the function f for all the values, and collect all failures, where the PartialFunction is defined
- Inherited from:
- SequenceMatchersCreation
matches if x.getClass.getInterfaces.contains(T)
matches if x.getClass.getInterfaces.contains(T)
- Inherited from:
- AnyBaseMatchers
matches if map.contains(k) forall key k
matches if map.contains(k) forall key k
- Inherited from:
- MapBaseMatchers
matches if map contains a pair (key, value) == (k, v)
matches if map contains a pair (key, value) == (k, v)
- Inherited from:
- MapBaseMatchers
matches if map contains all the specified pairs
matches if map contains all the specified pairs
- Inherited from:
- MapBaseMatchers
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 c.isAssignableFrom(v.getClass.getSuperclass)
matches if c.isAssignableFrom(v.getClass.getSuperclass)
- Inherited from:
- AnyBaseMatchers
matches if map contains a pair (key, value) with value == v
matches if map contains a pair (key, value) with value == v
- Inherited from:
- MapBaseMatchers
matches if map contains a pair (key, value) with value == v for all value v
matches if map contains a pair (key, value) with value == v for all value v
- Inherited from:
- MapBaseMatchers
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
- Inherited from:
- ExpectationsCreation
- Returns:
the value without any side-effects for expectations
- Definition Classes
- ThrownStandardMatchResults -> ExpectationsCreation
- Inherited from:
- ThrownStandardMatchResults
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
- Returns:
a matcher checking the type of an Exception and its message (as a regexp)
- Inherited from:
- ExceptionBaseMatchers
an expected value can be used to check another value
an expected value can be used to check another value
- Inherited from:
- ValueChecksBase
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
Implicits
Inherited implicits
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
this implicit provides an inverted syntax to adapt matchers to make the adaptation more readable in some cases:
- def haveExtension(extension: =>String) = ((_:File).getPath) ^^ endWith(extension)
- Inherited from:
- MatchersCreation
- Inherited from:
- EitherBeHaveMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create significant figures for the beCloseTo matcher
implicit definition to create significant figures for the beCloseTo matcher
- Inherited from:
- NumericMatchers
implicit definition to create delta for the beCloseTo matcher
implicit definition to create delta for the beCloseTo matcher
- Inherited from:
- NumericMatchers
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Inherited from:
- MatcherZipOperators
- Definition Classes
- ShouldThrownExpectables -> ShouldExpectations
- Inherited from:
- ShouldThrownExpectables
implicit definition to transform any MatchResult to a Result
implicit definition to transform any MatchResult to a Result
- Inherited from:
- MatchResultImplicits
- Inherited from:
- TraversableBaseMatchersLowImplicits
describe a value with the aka method
describe a value with the aka method
- Inherited from:
- ExpectationsDescription
a check of type T can be downcasted implicitly to a check of type S >: T
a check of type T can be downcasted implicitly to a check of type S >: T
- Inherited from:
- ValueChecks
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
implicit definition to accept any MatchResult as a Boolean value. It is true if the MatchResult is not an Error or a Failure
- Inherited from:
- MatchResultImplicits
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function, with function descriptors to a Matcher
This method transforms a function, with function descriptors to a Matcher
- Inherited from:
- MatchersCreation
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
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
This method transforms a function to a Matcher
This method transforms a function to a Matcher
- Inherited from:
- MatchersCreation
transform a value to a zero-arg function returning that value
transform a value to a zero-arg function returning that value
- Inherited from:
- LazyParameters
This method transforms a function returning a Result to a Matcher
This method transforms a function returning a Result to a Matcher
- Inherited from:
- MatchersCreation
- Inherited from:
- TraversableBeHaveMatchers
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
This method transforms a function returning a pair (Boolean, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation
a partial function returning an object having an AsResult instance can check a value
a partial function returning an object having an AsResult instance can check a value
- Inherited from:
- ValueChecks
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
Add functionalities to functions returning matchers so that they can be combined before taking a value and returning actual matchers
- Inherited from:
- ResultImplicits
implicit definition to transform a Seq of MatchResults to a Result
implicit definition to transform a Seq of MatchResults to a Result
- Inherited from:
- MatchResultImplicits
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
adapt the BeEqualTo matcher to provide ignoreCase and ignoreSpace matcher
- Inherited from:
- StringMatchers
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
this allows a function returning a matcher to be used where the same function with a byname parameter is expected
- Inherited from:
- MatchersCreation
This implicit definition allows to declare a number of times
3.times
This implicit definition allows to declare a number of times
3.times
- Inherited from:
- NumberOfTimes
- Inherited from:
- AnyBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
matcher aliases and implicits to use with be + matcher
matcher aliases and implicits to use with be + matcher
- Inherited from:
- NumericBeHaveMatchers
- Inherited from:
- MapBeHaveMatchers
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
implicit definition to accept any boolean value as a Result This avoids writing b must beTrue
- Inherited from:
- Results
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
This method transforms a function returning a triplet (Boolean, String for ok message, String for ko message) to a Matcher
- Inherited from:
- MatchersCreation