October 2016
Intermediate to advanced
198 pages
3h 52m
English
ScalaMock was perhaps the first mocking framework which understood that Scala is a different language than Java. It played on the fact that Scala allows both functional and object-oriented code. Therefore, the mocking framework for Scala needs to be able to mock both these as aspects of a Scala class.
It is a native framework and it allows mocking of both functions and objects. Paul Butcher wrote Scala mock.
We need to mix MockFactory into our test suite for us to be able to use ScalaMock with ScalaTest, as per the following example:
import ...
Read now
Unlock full access