ScalaMock
ScalaMock copied to clipboard
Native Scala mocking framework
### ScalaMock Version (e.g. 3.5.0) 5.2.0 (specs2: 4.20.2) ### Scala Version (e.g. 2.12) 2.13 ### Runtime (JVM or JS) JVM ### Please describe the expected behavior of the issue The...
worked in 3.4.2, broken in 3.5.0 real example: ```scala class MockableBroadcast[T: ClassTag] extends org.apache.spark.broadcast.Broadcast[T](42L) { override protected def getValue(): Nothing = ??? override protected def doUnpersist(blocking: Boolean): Unit = ???...
The following fails: ``` scala trait P extends PartiallyOrdered[P] { def f(x: P): P } val m = mock[P] ``` It generates a buch of errors such as "Parameter type...
I have a custom implementation of mutable.Map, and I get a type mismatch error when I try to create a stub with scalamock. This is the simplest example of what...
Hello, I am using `mock[InterfaceName]` to mock a java interface, but I get the following error: ``` Error:(15, 23) kinds of the type arguments (java.util.Map,String,Unit) do not conform to the...
*If you want to discuss a new feature, please ignore/clear this form.* ### ScalaMock Version (e.g. 3.5.0) 3.5.0 ### Scala Version (e.g. 2.12) 2.11.8 ### Runtime (JVM or JS) JS...
### ScalaMock Version (e.g. 3.5.0) 3.5.0 ### Scala Version (e.g. 2.12) 2.11 ### Runtime (JVM or JS) JVM ### Please describe the expected behavior of the issue Mock should be...
### ScalaMock Version 4.1.0 ### Scala Version 2.12 ### Runtime JVM ### Please describe the expected behavior of the issue trying to stub/mock a java class which accepts varargs in...
### ScalaMock Version (e.g. 3.5.0) 4.0.0 ### Scala Version (e.g. 2.12) 2.11 ### Runtime (JVM or JS) JVM ### Please describe the expected behavior of the issue There should be...
There is a compilation error when I try to mock a class with overloaded methods that have arguments of a generic type parametrised with a wildcard type. Example: ```scala class...