import org.mockito.Matchers.{eq => the, any}
Dependencies
To use ScalaTest with Mockito you need the following dependencies:"org.scalatest" %% "scalatest" % "1.6.1" % "test", "org.mockito" % "mockito-core" % "1.9.0" % "test",Have a look at the example:
Thanks for the tip on matching eq to the -- in my code, which uses the Specs mockito sugar (http://code.google.com/p/specs/wiki/UsingMockito) eq was actually working, but according to the compiler warning, it shouldn't have been:
ReplyDeletewarning: comparing values of types object org.mockito.Matchers and Int using `eq' will always yield false
[WARNING] something(any, Matchers.eq(1)) returns null
Your remapping tip above fixed it, but I have no idea why. Any clue?