Class MockScanner
java.lang.Object
org.mockito.internal.configuration.injection.scanner.MockScanner
Scan mocks, and prepare them if needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPreparedMocks
(Set<Object> mocks) Add the scanned and prepared mock instance to the given collection.
-
Constructor Details
-
MockScanner
Creates a MockScanner.- Parameters:
instance
- The test instanceclazz
- The class in the type hierarchy of this instance.
-
-
Method Details
-
addPreparedMocks
Add the scanned and prepared mock instance to the given collection.The preparation of mocks consists only in defining a MockName if not already set.
- Parameters:
mocks
- Set of mocks
-