|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Imposteriser
An object that can creates a proxy of the given type to capture
org.test4j.reflector.imposteriser.jmock.api.Invocations and pass them
to an org.test4j.reflector.imposteriser.jmock.api.Invokable object
for mocking or stubbing.
| 方法摘要 | ||
|---|---|---|
boolean |
canImposterise(Class type)
Reports if the Imposteriser is able to imposterise a given type. |
|
|
imposterise(Invokable mockObject,
Class<T> mockedType,
Class... ancilliaryTypes)
Creates an imposter for a given type that forwards Invocations to
an Invokable object. |
|
| 方法详细信息 |
|---|
boolean canImposterise(Class type)
type - The type in question.
<T> T imposterise(Invokable mockObject,
Class<T> mockedType,
Class... ancilliaryTypes)
Invocations to
an Invokable object.
T - The static type of the imposter that is created.mockObject - The object that is to receive invocations forwarded
from the imposter.mockedType - The class representing the static type of the imposter.ancilliaryTypes - Other types for the imposter. It must be possible
to dynamically cast the imposter to these types. These types
must all be interfaces because Java only allows single
inheritance of classes.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||