- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Stubbing method invocation with scalatest
Tue, 2012-02-07, 13:56
Dear all,
Is there a simple way to stub method invocations with scalatest ? The only method I have found from the docs is to assign the method to a partial function and use scalatest support for partial function...
Isn't there something like when(x.method) then (24) like in Mockito?
Best regards
Inviato da BlackBerry(R) Wireless Handheld