|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mockito.internal.configuration.injection.scanner.MockScanner
public class MockScanner
Scan mocks, and prepare them if needed.
| Constructor Summary | |
|---|---|
MockScanner(java.lang.Object instance,
java.lang.Class<?> clazz)
Creates a MockScanner. |
|
| Method Summary | |
|---|---|
void |
addPreparedMocks(java.util.Set<java.lang.Object> mocks)
Add the scanned and prepared mock instance to the given collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockScanner(java.lang.Object instance,
java.lang.Class<?> clazz)
instance - The test instanceclazz - The class in the type hierarchy of this instance.| Method Detail |
|---|
public void addPreparedMocks(java.util.Set<java.lang.Object> mocks)
The preparation of mocks consists only in defining a MockName if not already set.
mocks - Set of mocks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||