public interface MockProvider
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createFake(Class<? extends T> type)
Create a fake instance of the given type.
|
<T> T |
createVirtual(Class<? extends T> type,
T delegate)
Create a virtual instance of the given type that delegates to the given instance.
|
default <T> T |
createVirtualSut(Class<? extends T> type,
T delegate)
Create a virtual instance of the given type that delegates to the given instance.
|
<T> Boolean |
isMock(T instance)
Determine if the given instance is a mock instance.
|
void |
verifyAllInteraction(Object... collaborators)
Verify all interaction between the system under test and its collaborators.
|
<T> T createFake(Class<? extends T> type)
T - the type of the object being fakedtype - the class of the object being faked<T> T createVirtual(Class<? extends T> type, T delegate)
T - the type of the object being virtualizedtype - the class of the type being virtualizeddelegate - the instance calls are delegated todefault <T> T createVirtualSut(Class<? extends T> type, T delegate)
T - the type of the object being virtualizedtype - the class of the type being virtualizeddelegate - the instance calls are delegated tovoid verifyAllInteraction(Object... collaborators)
collaborators - an array of collaborators that will be verified<T> Boolean isMock(T instance)
the - instance typeinstance - the instanceCopyright © 2016–2018 Testify Project. All rights reserved.