Working with Mocks

c.t.inject.Mockito provides Specs2 Mockito syntatic sugar for ScalaTest.

This is a drop-in replacement for org.specs2.mock.Mockito and we encourage you to not use org.specs2.mock.Mockito directly. Otherwise, Mockito match failures will not propagate as ScalaTest test failures.

See the Override Modules or Explicit Binding with #bind[T] sections on using mocks in combination with other Finatra testing features.