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
Copy file name to clipboardExpand all lines: README.md
+20-6Lines changed: 20 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,6 @@ The library has independent developers, release cycle and versioning from core m
23
23
* Repositories: [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cmockito-scala_2.12) or [JFrog's Bintray](https://bintray.com/mockito/maven/mockito-scala)
24
24
25
25
26
-
**IMPORTANT!** mockito-scala will pull the right version of mockito-core as a transitive dependency,
27
-
but if for some reason you'd like to have both libraries explicitly declared in your build file, please make sure
28
-
you declare mockito-core first, as we currently rely on a class loader hack to make by-name arguments work.
29
-
30
-
31
26
For a more detailed explanation of the features please read [this](https://medium.com/@bbonanno_83496/introduction-to-mockito-scala-ede30769cbda) article series
32
27
33
28
@@ -43,7 +38,7 @@ This trait wraps the API available on `org.mockito.Mockito` from the Java versio
43
38
* Eliminates parenthesis when possible to make the test code more readable
44
39
* Adds `spyLambda[T]` to allow spying lambdas (they don't work with the standard spy as they are created as final classes by the compiler)
45
40
* Supports mocking inline mixins like `mock[MyClass with MyTrait]`
46
-
* Supports by-name arguments in some scenarios
41
+
* Supports by-name arguments in some scenarios[EXPERIMENTAL](#experimental-features)
47
42
* Full support when all arguments in a method are by-name
48
43
* Full support when only some arguments in a method are by-name, but we use the `any[T]` matcher for every argument
49
44
* Full support when only some arguments in a method are by-name, but we use NO matchers at all
@@ -75,6 +70,25 @@ The matchers for the value classes always require the type to be explicit, apart
0 commit comments