I just started using scalatest for java code and the fact that we use easymock to create mocks.
I have a situation where I want to do something like this.
expecting{ objA.function(x$1, x$2).andReturn(objectB) }
For the place owner x $ 1, x $ 2 I want to call a function similar to anyObject() in java.
Please offer something that can replace the placeholder.
source share