You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since mockito 1.0.0, when you use the idiomatic syntax, you are not forced anymore to use argument matchers for all your parameters as soon as you use one,
354
354
so stuff like this is now valid (not a comprehensive list, just a bunch of examples)
@@ -380,7 +380,7 @@ I'll write a more detailed explanation at some point, but there are more than on
380
380
The workaround is quite easy though, just provide a value (or a matcher) for that argument and you are good to go.
381
381
382
382
383
-
##Numeric matchers
383
+
##Numeric matchers
384
384
385
385
A new set of matchers to deal with number comparison were introduced (see [Scalactic tolerance](#tolerance) for aproximation),
386
386
the syntax is slightly different to make them more readable, so now we can write stuff like (notice the 'n')
@@ -394,9 +394,9 @@ aMock.method(n <= 5) was called
394
394
```
395
395
396
396
397
-
##Scalactic integration
397
+
##Scalactic integration
398
398
399
-
###Equality
399
+
###Equality
400
400
401
401
Since version 1.0.0 the `eqTo` matcher uses the `org.scalactic.Equality[T]` typeclass, this doesn't change anything on the API
402
402
and existent code will not be affected, but it allows you to override the standard equality of any class by just providing an
0 commit comments