What is mockito-scala?

In this lesson, we’ll take a look at one of the most common mocking libraries in Scala—mockito-scala. We can use mockito-scala with ScalaTest and Specs2. This course is about writing effective tests in Scala with ScalaTest, so we won’t focus on the integration with Specs2.

As you know, the first thing we do to import a new library is declare it in our Dependencies.scala file.

Get hands-on with 1400+ tech skills courses.