ScalaMock
ScalaMock copied to clipboard
Native Scala mocking framework
I found a similar issue to #514 ### ScalaMock Version (e.g. 3.5.0) 6.0.0 ### Scala Version (e.g. 2.12) 3.3.3 ### Runtime (JVM or JS) Eclipse Adoptium Java 21.0.2 ### Please...
Fixed more complex cases for union and intersection types Fixes #516
### ScalaMock Version (e.g. 3.5.0) 5.2.0 ### Scala Version (e.g. 2.12) 2.13.12 ### Runtime (JVM or JS) JVM ### Reproducible Test Case File for scala-cli: ```scala //> using scala 2.13.12...
### ScalaMock Version (e.g. 3.5.0) `6.0.0-M1` ### Scala Version (e.g. 2.12) `2.13.12` ### Runtime (JVM or JS) `JVM` ### Please describe the expected behavior of the issue It should stub...
The documentation is unclear about how this interaction should be handled, and I can't seem to find a combination that works. Given this trait: ``` trait DataStore { def insertAt(timestamp:...
I m using ScalaMock to create a stub of the [FileSystemManager interface](http://commons.apache.org/proper/commons-vfs/apidocs/index.html?org/apache/commons/vfs2/FileSystemManager.html) but keep encountering error during compile time because ScalaMock 3 is unable to resolve the overloaded method FileObject...
reported by @trane in #39: ``` scala trait OverloadedMultiParams[A] { def meth(i: Int, a: A): Int def meth(): Int } val mockTrait = mock[OverloadedMultiParams[String]] (mockTrait.meth(_: Int, _: String)).expects(1, "Hello").returns(1) ```...
Here is the type I want to macro mock: ``` trait SimpleService { trait SomeTypeLike { val text: String } def getSomething: Option[SomeTypeLike] } ``` But I get compile error:...
With the PR that addes Scala 3 compability some syntactical changes are needed and any side-effects of the new implementation should be added to the Github pages docs _Originally posted...
*If you want to discuss a new feature, please ignore/clear this form.* ### ScalaMock Version (e.g. 3.5.0) 5.2.0 ### Scala Version (e.g. 2.12) 2.13 ### Runtime (JVM or JS) JVM...