ScalaMock 3.0-M1 (scaladoc) for Scala 2.10.0-M4 is now released. It supports:
Mock functions, traits and classes
Both expectation-first and record-then-verify (Mockito-style) mocking
ScalaTest and
Specs2To use with sbt:
libraryDependencies =
"org.scalamock" %% "scalamock-scalatest-support" % "3.0-M1"
For background information, see ScalaMock 3.0 Preview Release.
It’s been tested against overloaded, curried and polymorphic methods, by-name parameters, path-dependent types and type projections. There may still be corner cases that aren’t handled correctly, please report a bug if you find one.
Published on June 24, 2012 14:08