Trait that provides some basic syntax sugar for Mockito.
Companion object that facilitates the importing of MockitoSugar
members as
an alternative to mixing it in.
Companion object that facilitates the importing of MockitoSugar
members as
an alternative to mixing it in. One use case is to import MockitoSugar
members so you can use
them in the Scala interpreter.
Trait that provides some basic syntax sugar for Mockito.
Using the Mockito API directly, you create a mock with:
Using this trait, you can shorten that to:
This trait also provides shorthands for the three other (non-deprecated) overloaded
mock
methods, which allow you to pass in a default answer, a name, or settings.