This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Stubbing method invocation with scalatest

No replies
edmondo1984
Joined: 2011-09-14,
User offline. Last seen 28 weeks 3 days ago.

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

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland