- extraInterfaces
Specifies extra interfaces the mock should implement. Might be useful for legacy
code or some corner
- defaultAnswer
Specifies default answers to interactions. It's quite advanced feature and
typically you don't need
- serializable
Configures the mock to be serializable with a specific serializable mode. With
this feature you can
- name
Specifies mock name. Naming mocks can be helpful for debugging - the name is
used in all verificatio
- spiedInstance
Specifies the instance to spy on. Makes sense only for spies/partial mocks. Sets
the instance that w
- useConstructor
Mockito attempts to use constructor when creating instance of the mock. This is
particularly useful
- invocationListeners
Registers a listener for method invocations on this mock. The listener is
notified every time a meth
- lenient
Lenient mocks bypass "strict stubbing" validation (see Strictness#STRICT_STUBS).
When mock is declar
- stubOnly
A stub-only mock does not record method invocations, thus saving memory but
disallowing verification
- build
Creates immutable view of mock settings used later by Mockito. Framework
integrators can use this me
- verboseLogging
Enables real-time logging of method invocations on this mock. Can be used during
test debugging in o
- outerInstance
Makes it possible to mock non-static inner classes in conjunction with
#useConstructor(Object...). E